View source: R/nice_regression_table.R
nice_regression_table | R Documentation |
Create a nice table from one or more regression models
nice_regression_table(
...,
round = 2,
labels_models = NULL,
rename_labels = list(),
rename_cols = list(),
remove_cols = NULL,
auto_col_names = TRUE,
file = NULL,
or = FALSE,
nice_p = TRUE,
title = "Regression model",
footnote = NULL
)
remove_cols |
Either column number or column names to be removed. |
lm(mpg ~ am + disp + hp, data = mtcars) |>
nice_regression_table()
nice_regression_table(
nlme::lme(mpg~disp, data = mtcars, random = ~1|am),
nlme::lme(mpg~disp + hp, data = mtcars, random = ~1|am)
)
nice_regression_table(
wmisc:::model_lmer_1, wmisc:::model_lmer_2,
rename_labels = list(
"EffectTrend" = "Trend", "EffectSlope" = "Slope", "TimePost" = "Post",
"ConditionTraining" = "Training", "id_subject" = "Subject"),
rename_cols = list("Estimate" = "B", "SE" = "se"),
labels_models = c("Only pretest", "Pre- and posttest")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.