pair_contrast: Pair Contrast

View source: R/contrast.R

pair_contrastR Documentation

Pair Contrast

Description

Construct a sum-to-zero contrast between two logical expressions.

Usage

pair_contrast(A, B, name, where = NULL)

Arguments

A

A formula representing the first logical expression in the contrast.

B

A formula representing the second logical expression in the contrast.

name

A character string specifying the name of the contrast (mandatory).

where

An optional formula specifying the subset over which the contrast is computed.

Value

A pair_contrast_spec object containing the sum-to-zero contrast between the two logical expressions.

Examples

# A hypothetical experiment with a factor 'category' that takes on values of 'face' and 'scene'
pair_contrast(~ category == "face", ~ category == "scene", name="face_scene")


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