em_means | R Documentation |
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, ...)
object |
a gamlj results object of the class 'gamlj' |
... |
all options accepted by a gamlj model function. |
formula |
(optional) rhs formula defining the factor(s) for which levels expected means are estimated |
an object of class
Marcello Gallucci
data(fivegroups)
fivegroups$Group<-factor(fivegroups$Group)
gmod<-GAMLj3::gamlj_lm(
formula = Score ~Group,
data = fivegroups)
em_means(gmod,formula =~Group)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.