Applying the Gaussian model for generalized linear regression

Generalized Linear Model (GLM) is a generalization of linear regression, which can include a link function to make a linear prediction. As a default setting, the family object for glm is Gaussian, which makes the glm function perform exactly the same as lm. In this recipe, we first demonstrate how to fit the model into the data using the glm function, and then show that glm with a Gaussian model performs exactly the same as lm.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset