dot-postprocess_matrix: Postprocess contrast matrices

.postprocess_matrixR Documentation

Postprocess contrast matrices

Description

When using use_contrasts() with a function or matrix, there are shared postprocessing steps for manipulating the contrasts to set the reference level, intercept, and labels. If as_is is TRUE, then these post processing steps aren't included.

Usage

.postprocess_matrix(
  new_contrasts,
  code_by,
  reference_level,
  set_intercept,
  drop_trends,
  matrix_labels,
  labels,
  as_is,
  dots
)

Arguments

new_contrasts

Contrast matrix passed from use_contrasts()

code_by

What to code with, passed from use_contrasts()

reference_level

Reference level specification

set_intercept

Intercept specification

drop_trends

Any trends to drop

matrix_labels

Labels from the matrix dimension names

labels

User-specified labels

as_is

Whether to use matrix as-is

dots

Any additional arguments passed with code_by

Value

Contrast matrix

See Also

use_contrasts()


contrastable documentation built on Oct. 1, 2024, 5:07 p.m.