emm {ClusterBootstrap}R Documentation

Calculate estimated marginal means for a cluster bootstrap GLM

Description

Returns the estimated marginal means of an clusbootglm object. This function works with a maximum of one between-subjects and one within-subjects variable.

Usage

emm(object, confint.level = 0.95)

Arguments

object

object of class clusbootglm.

confint.level

level of the confidence interval.

Value

emmeans returns an object of class clusbootemm, containing the following components:

grid

Grid with estimated marginal means for each combination of levels of the variables.

bootstrapsample.emm

p*B matrix, with p being the number of estimates and B being the number of bootstrap samples.

Author(s)

Mathijs Deen

Examples

## Not run: 
medication <- medication[medication$time %% 1 == 0,]
medication$time_f <- as.factor(medication$time)
set.seed(1)
model.1 <- clusbootglm(pos~time_f*treat, clusterid = id, data = medication)
emm.1 <- emm(object = model.1)
summary(object = emm.1)
## End(Not run)

[Package ClusterBootstrap version 1.1.2 Index]