em_means: Estimated marginal means in GAMLj results

View source: R/rinterface.R

em_meansR Documentation

Estimated marginal means in GAMLj results

Description

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.

Usage

em_means(object, ...)

Arguments

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

Value

an object of class

Author(s)

Marcello Gallucci

Examples

data(fivegroups)
fivegroups$Group<-factor(fivegroups$Group)
gmod<-GAMLj3::gamlj_lm(
  formula = Score ~Group,
  data = fivegroups)

em_means(gmod,formula =~Group)

mcfanda/gamlj documentation built on April 15, 2024, 11:16 a.m.