June 2017
Beginner to intermediate
576 pages
15h 22m
English
In Chapter 1, Getting Started with Predictive Analytics, our original example that we used to predict womens' heights based upon womens' weights used the lm package. We could also have used the glm package, specifying family=Gaussian as the link function:
lm_output <- lm(women$height ~ women$weight)
or:
glm_output <- glm(women$height ~ women$weight,family=gaussian)