apply several clustering methods and append results to a dataframe; assumes trained models already exist.

consensusSubtypingPredict(
  dataToClust,
  featureNames,
  clustVec,
  clustmodels,
  reorderers,
  mvcl,
  idvar,
  visitName,
  baselineVisit
)

Arguments

dataToClust

dataframe input that contains the relevant variables (may have others as well)

featureNames

names to use in the clustering

clustVec

names of the clustering methods to use

clustmodels

the trained models

reorderers

the reordering data frames

mvcl

character prefix for the new cluster column names

idvar

variable name for unique subject identifier column

visitName

the column name defining the visit variables

baselineVisit

the string naming the baseline visit

Value

new dataframe with new variables attached

Author

Avants BB

Examples

mydf = generateSubtyperData( 100 )