BaselineDef: Defines the baseline level of factor variable.

View source: R/BaselineDef.R

BaselineDefR Documentation

Defines the baseline level of factor variable.

Description

Baseline level will be recoded to 0 to ensure that all further analyses correctly identify this level to be the baseline.

Usage

BaselineDef(fact, baselinegroup = as.character(levels(get(fact)))[1])

Arguments

fact

Factor variable

baselinegroup

Character string defining the baseline level. Should be a level of fact.

Details

If a level 0 already exists, this will be redefined into level 0b.

Value

A factor variable with level 0 as the baseline

Author(s)

Mark A. van de Wiel

See Also

AllComp


markvdwiel/ShrinkBayes documentation built on March 27, 2022, 7:47 p.m.