Skip to contents

Drives the unified post-processing pipeline: expands the base mask across basis functions (when applicable), applies basis filtering, attaches the standard contrast list class, and returns an object compatible with downstream contrast_weights.event_model().

Usage

contrast_from_mask(mask, spec, term, classes = character())

Arguments

mask

Output of contrast_mask() (or compatible list).

spec

The originating contrast spec (stored on the result).

term

The event_term the contrast is being computed against.

classes

Character vector of extra S3 classes prepended to the default c("cell_contrast", "contrast", "list").

Value

A contrast object.

Details

Custom contrast types implement contrast_mask() and call this driver.