fac_and_contr: Create a factor and specify contrasts.

Description Usage Arguments Author(s) See Also

View source: R/contrast_functions.R

Description

The fac_and_contr function is a convenience function which coerces x to a factor with specified levels and contrasts.

Usage

1

Arguments

x

An object coercible to factor.

levels

A character vector of levels for the factor.

contrasts

A matrix of contrasts for the factor.

ordered

A logical indicating whether or not the factor is ordered (default FALSE).

Author(s)

Christopher D. Eager <eager.stats@gmail.com>

See Also

named_contr_sum (unordered factors) and scaled_contr_poly (ordered factors).


standardize documentation built on March 5, 2021, 9:07 a.m.