GLM’s on Swiss Data Set

Navneet

8 February 2016

Why Should You Know Linear Regression?

\(\Rightarrow\) among the most widely used algorithms by data scientists

Why Should You Know General Linear Models?

## 
## Call:  glm(formula = Infant.Mortality ~ Fertility + Education + Catholic, 
##     data = swiss)
## 
## Coefficients:
## (Intercept)    Fertility    Education     Catholic  
##    7.867371     0.159631     0.103403    -0.006246  
## 
## Degrees of Freedom: 46 Total (i.e. Null);  43 Residual
## Null Deviance:       390.3 
## Residual Deviance: 298.3     AIC: 230.2

How Does The App Help You Understand GLM’s?

https://navneet1083.shinyapps.io/Developing-Data-Products/

How Does The App Help You Explain GLM’s?

glm (
    Infant.Mortality ~ Fertility
                       + Examination,
    data = swiss
)$coefficients
## (Intercept)   Fertility Examination 
##  8.71870014  0.13718600  0.09710969
glm (
    Infant.Mortality ~ Examination,
    data = swiss
)$coefficients
## (Intercept) Examination 
## 20.62898680 -0.04162888