get_contrasts_from_spec: helper function to generate a contrast matrix from an lm()...

View source: R/glm_helper_functions.R

get_contrasts_from_specR Documentation

helper function to generate a contrast matrix from an lm() object and a set of user-specified contrasts using emmeans

Description

helper function to generate a contrast matrix from an lm() object and a set of user-specified contrasts using emmeans

Usage

get_contrasts_from_spec(mobj, lmfit = NULL)

Arguments

mobj

a model object created by build_l<X>_models

lmfit

an optional lm() object used for emmeans calculations. If provided, this object will be used instead of mobj$lmfit (the parent lm on the overall dataset).

Value

a modified copy of the model object mobj with $contrast_list and $contrasts fully populated


UNCDEPENdLab/fmri.pipeline documentation built on April 3, 2025, 3:21 p.m.