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 Nov. 6, 2024, 11:07 p.m.