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
)

Arguments

mxdfin

Input data frame

measureColumn

string defining a valid column to use for subtyping. E.g. the output of the covariate adjustment done by adjustByCovariates.

subtypes

string vector naming the subtypes

quantiles

numeric vector defining the quantiles that will yield subgroups

subtypename

string naming the subtype variable

groupVariable

names of the column that defines the group to use for training.

group

string defining a subgroup on which to train

Value

data frame defining the subtypes and cutpoints

Author

Avants BB

Examples

mydf = generateSubtyperData( 100 )
qdf = trainSubtypeUni( mydf, "cognition", c("C0","C1","C2"), c(0.33,0.66) )