transformCatCov: Transform covariates

Description Usage Arguments Value Examples

View source: R/SaemixData.R

Description

Regroup categorical covariates

Usage

1
transformCatCov(object, covariate, group, reference, verbose = FALSE)

Arguments

object

saemixData object

covariate

name of the covariate

group

a vector giving the categories to which the initial values of the covariates should be mapped. If the resulting covariate is binary, it will be stored as 0/1. If it has more than 2 categories, dummy covariates will be created for the analysis.

reference

the reference group

verbose

a boolean, prints messages during the execution of the function if TRUE. Defaults to FALSE.

Value

an object of class "SaemixData"

Examples

1
# TODO

belhal/saemix documentation built on March 22, 2018, 2:34 p.m.