October 2017
Beginner to intermediate
572 pages
26h 1m
English
Perform the following steps to fit a generalized linear regression model with the Gaussian model:
> lmfit1 = glm(wages ~ age + sex + education, data = SLID, fami ly=gaussian) > summary(lmfit1) Output: Call: glm(formula = wages ~ age + sex + education, family = gaussian, data = SLID) Deviance Residuals: Min 1Q Median 3Q Max -26.111 -4.328 -0.792 3.243 35.892 Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) -7.905243 0.607771 -13.01 <2e-16 *** age 0.255101 0.008634 29.55 <2e-16 *** sexMale 3.465251 0.208494 16.62 <2e-16 *** education 0.918735 0.034514 26.62 <2e-16 *** --- Signif. codes: 0 '***' 0.001 '**' 0.01 '*' ...
Read now
Unlock full access