Summarise estimated marginal means and contrasts
Source:R/summarise_gazepoint_emmeans.R
summarise_gazepoint_emmeans.RdCreate manuscript-ready estimated marginal means and pairwise contrast tables
from fitted models used in gp3tools workflows.
Usage
summarise_gazepoint_emmeans(
model,
specs,
by = NULL,
model_name = NULL,
type = "response",
contrast_method = "pairwise",
adjust = "tukey",
conf_level = 0.95,
include_contrasts = TRUE
)Arguments
- model
A fitted model object, or a
gp3toolsfit object containing a$modelelement.- specs
Character vector or formula passed to
emmeans::emmeans().- by
Optional character vector of grouping variables passed to
emmeans::emmeans().- model_name
Optional model label used in returned tables.
- type
Scale passed to
emmeanssummaries. Common values are"link"and"response".- contrast_method
Contrast method passed to
emmeans::contrast().- adjust
Multiplicity adjustment for contrasts.
- conf_level
Confidence level.
- include_contrasts
Logical. If
TRUE, compute contrasts.