regressiontable: regressiontable

regressiontableR Documentation

regressiontable

Description

Create gt table of regression coefficients

Usage

regressiontable(models, caption = NULL, sigfig = 3)

Arguments

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

Details

Currently only supports lm and glm models

Value

A gt table

See Also

tidy gt

Examples

## 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)

grasshoppermouse/hagenutils documentation built on Dec. 6, 2024, 8:31 p.m.