get_model_coefs | R Documentation |
Uses broom::tidy
to extract coefficients from models. If the model doesn't support this, it will fail. There is a special case for rlm
models, where the p value is calculated manually. If the model is of class rms
, then the summary.lm
function is used to extract coefficients. There is some special handling for factor levels, where the levels are made nicer, but this is not done for rms
models.
get_model_coefs(models, conf.level = 0.95, nicer_factor_levels = T)
models |
A list of models |
conf.level |
Which confidence level to use. Default is .95. |
nicer_factor_levels |
Whether to make factor levels nicer. Default is TRUE. |
Data frame
list(
a = lm(Sepal.Width ~ Sepal.Length, data = iris),
b = lm(Sepal.Width ~ Sepal.Length + Petal.Width, data = iris)
) %>% get_model_coefs()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.