check_contrast_orthogonality: check_contrast_orthogonality

View source: R/check_contrast_orthogonality.R

check_contrast_orthogonalityR Documentation

check_contrast_orthogonality

Description

checks to make sure that a contrast of a factor is orthogonal.

Usage

check_contrast_orthogonality(x)

Arguments

x

contrast table/matrix

Details

checks to make sure that a contrast of a factor is orthogonal by ensuring (1) sum of each contrast equals 0 and (2) sum of each product of each contrast pair equals 0

Examples

contrast_example <- data.frame(c1 = c(1/3, 1/3, -2/3),
                               c2 = c(-1/2, 1/2, 0))
check_contrast_orthogonality(contrast_example)

epongpipat/eepR documentation built on June 5, 2024, 10:03 a.m.