fct_contr_sum: Setting factor contrasts

View source: R/misc.R

fct_contr_sumR Documentation

Setting factor contrasts

Description

Functions for manipulating the contrasts of factors.

A wrapper of contr.sum, but the resulting contrasts matrix included column names and is easier for extracting coefficients from a fitted model object

Usage

fct_contr_sum(x, drop.levels = FALSE)

fct_contr_check_trt(x, checks, drop.levels = FALSE)

Arguments

x

A factor.

drop.levels

Logical. Should unused levels be dropped?

checks

Levels of the factor x corresponding to "checks"

Functions

  • fct_contr_check_trt():


neyhartj/neyhart documentation built on Jan. 17, 2024, 11:13 a.m.