library(modelsummary)

mod <- list(
    'One variable' = lm(mpg ~ hp, mtcars),
    'Two variables' = lm(mpg ~ hp + drat, mtcars)
)

modelsummary(
    mod,
    statistic = c("t = {statistic}", "conf.int", "{std.error} ({p.value})"),
    stars = TRUE,
    align = "ldd")


vincentarelbundock/gtsummary documentation built on Feb. 15, 2025, 11:22 p.m.