Learn R Programming

sanon (version 1.2)

catecovar: Identify Categorical Covariables

Description

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.

Usage

catecovar(x, ref = NULL)

Arguments

x
variable name
ref
character for the reference group for the categorical covariable.

Details

In the sanon, the categorical covariable is converted into a dummy variable. The reference group is specified in the ref argument.