Skip to contents

Thin extender over emmeans::emmeans(). The fitted model is passed through unchanged; specs follows the usual emmeans formula / list interface. Use emmeans::pairs() or emmeans::contrast() on the returned object for pairwise or custom contrasts.

Usage

morie_effects_emmeans(model, specs, ...)

Arguments

model

A fitted model object (lm, glm, lmerMod, ...).

specs

Specification for the marginal means – a formula (e.g. ~ treatment), character vector of factor names, or a list, exactly as accepted by emmeans::emmeans().

...

Further arguments forwarded to emmeans::emmeans().

Value

An emmGrid object.