Learn R Programming

contrastable (version 1.0.2)

.postprocess_matrix: 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
)

Value

Contrast matrix

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

See Also

use_contrasts()