Skip to contents

Main functions

Functions for setting and summarizing contrast matrices

enlist_contrasts()
Get a list of contrast matrices
glimpse_contrasts()
Get quick summary of contrasts in dataframe
set_contrasts()
Set contrasts to factor columns in dataframe

Contrast-generating functions

Functions for creating contrast matrices given some number of levels

backward_difference_code()
Use backward difference coding
cumulative_split_code()
Use cumulative split coding
forward_difference_code()
Use forward difference coding
helmert_code()
Use helmert coding
orth_polynomial_code() polynomial_code()
Use orthogonal polynomial coding
raw_polynomial_code()
Use raw polynomial coding
reverse_helmert_code()
Use reverse helmert coding
scaled_sum_code()
Use scaled sum coding
sum_code()
Use sum coding
treatment_code()
Use treatment coding

Miscellaneous

Other utilities provided by the package

decompose_contrasts()
Decompose contrasts into new columns
interpret_intercept()
Interpret intercept from contrasts
is.unordered()
Check for unordered factor
is_centered()
Check for intercept centering
is_orthogonal()
Check for orthogonality
as.unordered()
Convert to unordered factor
use_contrasts(<AsIs>)
AsIs method for use_contrasts
use_contrasts()
Use contrast specification for given factor
use_contrasts(<default>)
Default method for use_contrasts
use_contrasts(<function>)
Function method for use_contrasts
use_contrasts(<hypr>)
hypr method for use_contrasts
use_contrasts(<matrix>)
Matrix method for use_contrasts
use_contrasts(<name>)
Symbol method for use_contrasts