Skip to contents

Get the pairwise contrasts of variables in a model

Usage

get_contrast(model, formula, at = NULL, ...)

Arguments

model

A fitted model object.

formula

A formula specifying the variables for which to get the contrasts. See ?emmeans::emmeans for details.

at

Optional. A list of values at which to evaluate the contrasts.

...

Additional arguments passed to emmeans::contrast().

Value

An emm_grid object with the pairwise contrasts of the specified variables.