Table printing and column width/adjustment #632
Replies: 4 comments 1 reply
-
library(parameters)
library(lme4)
#> Loading required package: Matrix
data("qol_cancer")
qol_cancer <- cbind(
qol_cancer,
datawizard::demean(qol_cancer, select = c("phq4", "QoL"), group = "ID")
)
model2 <- lmer(
QoL ~ time + phq4_within + phq4_between + (1 | ID),
data = qol_cancer
)
model_parameters(model2, effects = "fixed") |>
print(column_width = "fixed",
sep = " ",
ci_brackets = FALSE)
#> Parameter Coefficient SE 95% CI t(558) p
#> ------------------------------------------------------------------
#> (Intercept) 71.53 1.56 68.48, 74.59 45.98 < .001
#> time 1.09 0.64 -0.17, 2.34 1.70 0.089
#>
#> # Within-Effects
#>
#> Parameter Coefficient SE 95% CI t(558) p
#> ------------------------------------------------------------------
#> phq4 within -3.66 0.41 -4.46, -2.86 -8.95 < .001
#>
#> # Between-Effects
#>
#> Parameter Coefficient SE 95% CI t(558) p
#> ------------------------------------------------------------------
#> phq4 between -6.28 0.50 -7.27, -5.30 -12.53 < .001
#>
#> Uncertainty intervals (equal-tailed) and p values (two-tailed) computed using a
#> Wald t-distribution approximation. Created on 2021-11-11 by the reprex package (v2.0.1) |
Beta Was this translation helpful? Give feedback.
-
very impressive! |
Beta Was this translation helpful? Give feedback.
-
So pretty! Thanks, Daniel 🧙 |
Beta Was this translation helpful? Give feedback.
-
And it also renders nicely in rmarkdown presentations. |
Beta Was this translation helpful? Give feedback.
-
@DominiqueMakowski @mattansb @bwiernik @IndrajeetPatil
I have revised the function of the
width
argument ininsight::export_table()
(see examples), which now allows the alignment of (multiple) tables inmodel_parameters()
as well.Beta Was this translation helpful? Give feedback.
All reactions