oneway_contrast: One-way Contrast

View source: R/contrast.R

oneway_contrastR Documentation

One-way Contrast

Description

Create a one-way contrast specification

Usage

oneway_contrast(A, name, where = NULL)

Arguments

A

A formula specifying the contrast

name

The name of the contrast

where

Optional environment for evaluating the formula

Value

A oneway_contrast_spec object that can be used to generate contrast weights

See Also

interaction_contrast for testing interactions, pair_contrast for pairwise comparisons

Examples

# Create a one-way contrast for a factor 'basis'
con <- oneway_contrast(~ basis, name = "Main_basis")

# Create a one-way contrast with a specific environment
con <- oneway_contrast(~ basis, name = "Main_basis",
                      where = new.env())


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