catecovar {sanon} | R Documentation |
This is a special function used in the context of sanon
. It identifies categorical covariables when they appear on the right hand side of a formula.
catecovar(x, ref = NULL)
x |
variable name |
ref |
character for the reference group for the categorical covariable. |
In the sanon
, the categorical covariable is converted into a dummy variable. The reference group is specified in the ref
argument.