Learn R Programming

emmeans (version 1.8.0)

emm_list: The emm_list class

Description

An emm_list object is simply a list of emmGrid objects. Such a list is returned, for example, by emmeans with a two-sided formula or a list as its specs argument. Several methods for this class are provided, as detailed below.

Usage

# S3 method for emm_list
contrast(object, ..., which = I_bet(1))

# S3 method for emm_list pairs(x, ..., which = I_bet(1))

# S3 method for emm_list test(object, ..., which = seq_along(object))

# S3 method for emm_list confint(object, ..., which = seq_along(object))

# S3 method for emm_list plot(x, ..., which = I_bet(1))

# S3 method for emm_list coef(object, ..., which = I_bet(1))

# S3 method for emm_list str(object, ...)

# S3 method for emm_list summary(object, ..., which = seq_along(object))

# S3 method for emm_list print(x, ...)

I_bet(which)

Value

a list of objects returned by the corresponding emmGrid

method (thus, often, another emm_list object). However, if

which has length 1, the one result is not wrapped in a list.

Arguments

object, x

an object of class emm_list

...

additional arguments passed to corresponding emmGrid method

which

integer vector specifying which elements to select.