regressiontable | R Documentation |
Create gt table of regression coefficients
regressiontable(models, caption = NULL, sigfig = 3)
models |
Named list of lm and glm models. |
caption |
Optional caption for table, Default: NULL |
sigfig |
The number of significant digits to display, Default: 3 |
Currently only supports lm and glm models
A gt table
tidy
gt
## Not run:
if(interactive()){
models <- list(
"model 1" = lm(mpg ~ hp, mtcars),
"model 2" = glm(am ~ hp, family=binomial, mtcars)
)
regressiontable(models)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.