| cv_survclust | R Documentation | 
survClust for a particular k. cv_survclust runscv_survclust performs k fold cross-validation, runs survClust on each training and
hold out test fold and return cross-validated supervised cluster labels.
cv_survclust(datasets, survdat = NULL, k, fold, cmd.k = NULL, type = NULL)
datasets | 
 A list object containing   | 
survdat | 
 A matrix, containing two columns - 1st column   | 
k | 
 integer, choice of   | 
fold | 
 integer, number of folds to run cross validation  | 
cmd.k | 
 integer, number of dimensions used by   | 
type | 
 Specify   | 
cv.labelsreturns cross validated class labels for k cluster
cv.logranklogrank test statistic of cross validated label
cv.spwssstandardized pooled within-cluster sum of squares calculated from cross-validation class labels
Arshi Arora
library(survClust)
cv.fit <- cv_survclust(datasets = simdat, survdat = simsurvdat, k = 3, fold=3 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.