contrast: Contrast Specification

View source: R/contrast.R

contrastR Documentation

Contrast Specification

Description

Define a linear contrast using a formula expression.

Usage

contrast(form, name, where = NULL)

Arguments

form

A formula describing the contrast.

name

A character label for the contrast.

where

An expression defining the subset over which the contrast is applied (default: NULL).

Value

A list containing the contrast specification.

Examples

# A minus B contrast
contrast(~ A - B, name="A_B")


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