Allows users to specify the name and the associated value for each category/occasion of a
categorical/occasion covariate in a textual model object. Only applicable to the case where
the corresponding input data column of a categorical/occasion covariate is of class character.
Usage
addLabel(.Object, covariate, levels, labels)
Arguments
- .Object
Model object
- covariate
Existing covariate name
- levels
Unique values of categorical or occasion covariate column specified as numeric vector
- labels
Unique values specifying corresponding label names for levels of categorical or occasion covariate
column in data specified as character vector.
Examples
if (FALSE) { # \dontrun{
model <- addLabel(model, covariate, c(1, 2, 3), c("a", "b", "c"))
} # }