em_means.Rd
This is a convenience function to extract the estimated marginal means table from a GAMLj model. If no option is passed, extracts the emmeans table already in the model results (if any). If a formula is passed, the estimated marginal means for the defined factors are displayed.
em_means(object, formula, ...)
an object of class
data(fivegroups)
fivegroups$Group<-factor(fivegroups$Group)
gmod<-GAMLj3::gamlj_lm(
formula = Score ~Group,
data = fivegroups)
em_means(gmod,formula =~Group)
#>
#> ESTIMATED MARGINAL MEANS
#>
#> Estimate Marginal Means - Group
#> ──────────────────────────────────────────────────────────────────────
#> Group Mean SE df Lower Upper
#> ──────────────────────────────────────────────────────────────────────
#> 1 0.0095455 0.0770180 166 -0.1425156 0.1616065
#> 2 -0.0905556 0.0851466 166 -0.2586653 0.0775542
#> 3 0.2531111 0.0761574 166 0.1027492 0.4034731
#> 4 0.4526667 0.0761574 166 0.3023047 0.6030286
#> ──────────────────────────────────────────────────────────────────────
#>