addLabel | R Documentation |
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.
addLabel(.Object, covariate, levels, labels)
.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. |
Modified NlmePmlModel
object
model <- addLabel(model, covariate, c(1, 2, 3), c("a", "b", "c"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.