nice_regression_table: Create a nice table from one or more regression models

View source: R/nice_regression_table.R

nice_regression_tableR Documentation

Create a nice table from one or more regression models

Description

Create a nice table from one or more regression models

Usage

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
)

Arguments

remove_cols

Either column number or column names to be removed.

Examples

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

jazznbass/wmisc documentation built on Oct. 29, 2024, 5:42 p.m.