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
)
dataframe input that contains the relevant variables (may have others as well)
names to use in the clustering
names of the clustering methods to use
the trained models
the reordering data frames
character prefix for the new cluster column names
variable name for unique subject identifier column
the column name defining the visit variables
the string naming the baseline visit
new dataframe with new variables attached
mydf = generateSubtyperData( 100 )