interaction_contrast: Interaction Contrast

View source: R/contrast.R

interaction_contrastR Documentation

Interaction Contrast

Description

Create an interaction contrast specification

Usage

interaction_contrast(A, name, where = NULL)

Arguments

A

A formula specifying the interaction contrast

name

The name of the contrast

where

Optional environment for evaluating the formula

Value

An interaction_contrast_spec object containing the specification for generating interaction contrast weights

See Also

oneway_contrast for main effects, pair_contrast for pairwise comparisons

Examples

# Create an interaction contrast for factors A and B
con <- interaction_contrast(~ A * B, name = "A_by_B")

# Create an interaction contrast with a specific environment
con <- interaction_contrast(~ A * B, name = "A_by_B",
                          where = new.env())


bbuchsbaum/fmrireg documentation built on March 1, 2025, 11:20 a.m.