Gabrielle Yang thinks this is interesting: Listing 6.4. Function to build single-variable models for categorical variables From Chapter 6. Memorization methods from Practical Data Science with R by Nina Zumel and John Mount Publisher: Manning Publications Released: March 2014 Note in the function, note #4, why to add 1.0e-3 * pPos and 1.0e-3? Share this highlight http://www.safaribooksonline.com/a/practical-data-science/11966717/ Twitter Facebook Google Plus Email Get Instant Access Now Start a Free Trial Learn about Safari for Business Have an account? Sign in. Minimise Unlock the rest of Practical Data Science with R and 30,000 other books and videos By clicking this box, you confirm that you have read and agree to the terms and conditions of our Membership Agreement, and you understand that when your trial period ends, you will be required to provide billing information if you wish to continue using the service. Unlock the rest of this book Start a Free 10-Day Trial loading Learn about Safari for Business Have an account? Sign in.