unit_contrast: Unit Contrast

View source: R/contrast.R

unit_contrastR Documentation

Unit Contrast

Description

Construct a contrast that sums to 1 and is used to define contrasts against the baseline.

Usage

unit_contrast(A, name, where = NULL)

Arguments

A

A formula representing the contrast expression.

name

A character string specifying the name of the contrast.

where

An optional formula specifying the subset of conditions to apply the contrast to.

Value

A unit_contrast_spec object containing the contrast that sums to 1.

Examples

con <- unit_contrast(~ Face, name="Main_face")


bbuchsbaum/fmrireg documentation built on May 16, 2023, 10:56 a.m.