getstats: Compute fit statistics after cross validation via...

getStatsR Documentation

Compute fit statistics after cross validation via cv_survclust

Description

Compute fit statistics after cross validation via cv_survclust

Usage

getStats(cv.fit, kk = 8, cvr = 50)

Arguments

cv.fit

output from cv_survclust object

kk

number of k clusters on which cv_survclust was run, default is 8

cvr

round of cross-validation on which cv_survclust was run, default is 50

Details

getStats calculates Logrank statistic and standardized pooled within sum of squares (SPWSS) across cross-validated labels. Visualize it via plotStats

Value

A list of the following

  • lr log rank statistic

  • spwss standardized pooled within sum of squares

  • bad.sol number of solutions for each kk that have cluster class <5 samples

Author(s)

Arshi Arora

Examples

library(survClust)
ss_stats <- getStats(uvm_survClust_cv.fit, kk=7, cvr=10)


arorarshi/survClust documentation built on April 21, 2024, 1:51 p.m.