Table 1:
GLM family / Regression type |
Response type | Representation in R |
---|---|---|
Gaussian | gaussian() | |
Logistic | {0, 1} | binomial() |
Probit | {0, 1} | binomial(link = "probit") |
Quasi-Binomial | {0, 1} | quasibinomial() |
Poisson | poisson() | |
Quasi-Poisson | quasipoisson() | |
Negative binomial | MASS::negative.binomial(theta = 3) | |
Gamma | Gamma() | |
Inverse Gaussian | inverse.gaussian() | |
Tweedie | Depends on variance power parameter | statmod::tweedie() |