get_contrast_matrix: Obtain a contrast matrix for a data set given a specified...

Description Usage Arguments Value

View source: R/get_contrast_matrix.R

Description

Obtain a contrast matrix for a data set given a specified formula

Usage

1
get_contrast_matrix(data, formula, contrast_kind = NULL)

Arguments

data

A data frame (or tibble).

formula

A formula starting with '~' expressing the model

contrast_kind

The kind of contrasts to use. Used to quickly convert all factors to a particular non-R-default contrast kind.

Value

A contrast matrix with the formula & data saved as attributes.


mike-lawrence/ezStan documentation built on Dec. 29, 2021, 1:30 a.m.