apply consensus clustering give several clustering solutions using PAM as the consensus method
consensusSubtypingPAM(
dataToClust,
targetk,
cocanames,
newclustername,
reorderingVariable,
idvar,
visitName,
baselineVisit,
maxK,
criterion = "asw",
verbose = TRUE
)
dataframe input that contains the relevant variables (may have others as well)
the desired number of classes
names of columns to use for the consensus
the column name for the consensus clustering
the name of the column to use to reorder the cluster names
variable name for unique subject identifier column
the column name defining the visit variables
the string naming the baseline visit
maximum number of clusters
see fpc pamk
boolean
new dataframe with new variables attached
mydf = generateSubtyperData( 100 )