emm_list {emmeans}R Documentation

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.

Details

Methods for emm_list objects include summary, coef, confint, contrast, pairs, plot, print, and test. These are all the same as those methods for emmGrid objects, with an additional which argument (integer) to specify which members of the list to use. The default is which = seq_along(object); i.e., the method is applied to every member of the emm_list object. The exception is plot, where only the which[1]th element is plotted.

As an example, to summarize a single member – say the second one – of an emm_list, one may use summary(object, which = 2), but it is probably preferable to directly summarize it using summary(object[[2]]).

Note

No export option is provided for printing an emm_list (see print.emmGrid). If you wish to export these objects, you must do so separately for each element in the list. #'


[Package emmeans version 1.7.4-1 Index]