Chapter 17. Generalized Linear Models
Not all data can be appropriately modeled with linear regression, because they are binomial (TRUE
/FALSE
) data, count data or some other form. To model these types of data, generalized linear models were developed. They are still modeled using a linear predictor, Xβ, but they are transformed using some link function. To the R
user, fitting a generalized linear model requires barely any more effort than running a linear regression.
17.1. Logistic Regression
A very powerful and common model—especially in fields such as marketing and medicine—is logistic regression. The examples in this section will use a subset of data from the 2010 American Community Survey (ACS) for New York State.1 ACS data contain a lot ...
Get R for Everyone: Advanced Analytics and Graphics now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.