View source: R/bruceR-stats_4_regress.R
| GLM_summary | R Documentation | 
lm and glm models).NOTE: model_summary() is preferred.
GLM_summary(model, robust = FALSE, cluster = NULL, digits = 3, ...)
model | 
 A model fitted with   | 
robust | 
 [Only for  Options:  Note:   | 
cluster | 
 [Only for   | 
digits | 
 Number of decimal places of output. Defaults to   | 
... | 
 Other arguments. You may re-define   | 
No return value.
print_table() (print simple table)
model_summary() (strongly suggested)
HLM_summary()
regress()
## 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.