makeDummies: Create categorical covariates

makeDummiesR Documentation

Create categorical covariates

Description

Create categorical covariates

Usage

makeDummies(data, covariate, varName)

Arguments

data

a dataframe containing the dataset that needs to be used

covariate

the covariate that needs to be converted to categorical; must be present in the data

varName

the variable name to which the given covariate is to be added

Value

a list of updated data with covariates added, an expression that needs to be added to the model expression, the list of covariate names, and the column names corresponding to the categorical covariates

Author(s)

Vipul Mann, Matthew Fidler


nlmixr documentation built on March 27, 2022, 5:05 p.m.

Related to makeDummies in nlmixr...