is_centered: Check for intercept centering

View source: R/is_centered.R

is_centeredR Documentation

Check for intercept centering

Description

Given a contrast matrix or list of contrast matrices (eg from enlist_contrasts()), return a logical vector of whether each contrast is centered or not.

Usage

is_centered(contrast_matrices, USE.NAMES = FALSE)

Arguments

contrast_matrices

Contrast matrix or list of contrast matrices

USE.NAMES

Logical, whether vector should be named

Value

Logical vector, will retain names of a passed list

See Also

is_orthogonal()

Examples

is_centered(treatment_code(5)) # FALSE
is_centered(scaled_sum_code(5)) # TRUE


tsostarics/contrastable documentation built on Jan. 25, 2025, 1:33 p.m.