GLM_summary {bruceR} | R Documentation |

`lm`

and `glm`

models).Tidy report of GLM (`lm`

and `glm`

models).

GLM_summary(model, robust = FALSE, cluster = NULL, nsmall = 3, ...)

`model` |
A model fitted by |

`robust` |
`FALSE` (default), `TRUE` (then the default is `"HC1"` ),
`"HC0"` , `"HC1"` , `"HC2"` , `"HC3"` , `"HC4"` , `"HC4m"` , or `"HC5"` .
It will add a table with heteroskedasticity-robust standard errors (aka. Huber-White standard errors).
For details, see `?sandwich::vcovHC` and `?jtools::summ.lm` .
*** |

`cluster` |
`cluster` , you may also specify the type of `robust` . If you do not specify `robust` , `"HC1"` will be set as default. |

`nsmall` |
Number of decimal places of output. Default is 3. |

`...` |
Other parameters. You may re-define |

No return value.

## Example 1: OLS regression lm=lm(Temp ~ Month + Day + Wind + Solar.R, data=airquality) GLM_summary(lm) GLM_summary(lm, robust="HC1") # Stata's default is "HC1" # R package <sandwich>'s default is "HC3" ## Example 2: Logistic regression glm=glm(case ~ age + parity + education + spontaneous + induced, data=infert, family=binomial) GLM_summary(glm) GLM_summary(glm, robust="HC1", cluster="stratum")

[Package *bruceR* version 0.7.0 Index]