Skip to contents

Overview

emmeans-package
Estimated marginal means (aka Least-squares means)
ref_grid()
Create a reference grid from a fitted model
emmeans()
Estimated marginal means (Least-squares means)
emtrends()
Estimated marginal means of linear trends
lsmeans() lstrends() lsmip() lsm() lsmobj() lsm.options() get.lsm.option()
Wrappers for alternative naming of EMMs
qdrg()
Quick and dirty reference grid

Follow-up analyses

Summaries

summary(<emmGrid>) confint(<emmGrid>) test() predict(<emmGrid>) as.data.frame(<emmGrid>) `[`(<summary_emm>)
Summaries, predictions, intervals, and tests for emmGrid objects
hpd.summary()
Summarize an emmGrid from a Bayesian model
untidy
Dare to be un-"tidy"!

Modifying objects

comb_facs() split_fac() add_grouping() permute_levels()
Manipulate factors in a reference grid
rbind(<emmGrid>) `+`(<emmGrid>) `[`(<emmGrid>) head(<emmGrid>) tail(<emmGrid>) subset(<emmGrid>) rbind(<emm_list>) rbind(<summary_emm>) force_regular()
Combine or subset emmGrid objects
regrid()
Reconstruct a reference grid with a new transformation or simulations
update(<emmGrid>) `levels<-`(<emmGrid>) update(<summary_emm>)
Update an emmGrid object

Displays

cld(<emmGrid>) cld(<emm_list>)
Compact letter displays
emmip() emmip_ggplot() emmip_lattice()
Interaction-style plots for estimated marginal means
plot(<emmGrid>) plot(<summary_emm>)
Plot an emmGrid or summary_emm object
pwpm()
Pairwise P-value matrix (plus other statistics)
pwpp()
Pairwise P-value plot

Data sets

auto.noise
Auto Pollution Filter Noise
feedlot
Feedlot data
fiber
Fiber data
MOats
Oats data in multivariate form
neuralgia
Neuralgia data
nutrition
Nutrition data
oranges
Sales of oranges
pigs
Effects of dietary protein on free plasma leucine concentration in pigs
ubds
Unbalanced dataset

Structures

Utilities

emm() as.glht()
Support for multcomp::glht
emm_example()
Run or list additional examples
emm_options() get_emm_option() emm_defaults
Set or change emmeans options
make.tran() inverse()
Response-transformation extensions
str(<emmGrid>) print(<emmGrid>) vcov(<emmGrid>)
Miscellaneous methods for emmGrid objects

Convert to outside formats

Models and extending