This is the training module for subtype definition based on a vector. Produces a data frame denoting the measurement variable, its cutpoints and the names of the subtypes. One may want to use a specific sub-group for this, e.g. patients.
trainSubtypeUni(
mxdfin,
measureColumn,
subtypes,
quantiles = c(0.25, 0.75),
subtypename = "subtype",
groupVariable,
group
)
Input data frame
string defining a valid column to use for subtyping. E.g.
the output of the covariate adjustment done by adjustByCovariates
.
string vector naming the subtypes
numeric vector defining the quantiles that will yield subgroups
string naming the subtype variable
names of the column that defines the group to use for training.
string defining a subgroup on which to train
data frame defining the subtypes and cutpoints
mydf = generateSubtyperData( 100 )
qdf = trainSubtypeUni( mydf, "cognition", c("C0","C1","C2"), c(0.33,0.66) )