surv_cluster | R Documentation |
Clusterization of survival data using 'kml' and 'survival'. This function identify clusters of data that behaves similarly with regard to the hazard function.
surv_cluster( aj, n_clusters, nbRedrawing = 1, parAlgo = kml::parALGO(saveFreq = Inf, distanceName = "canberra") )
aj |
aj previously fitted model (using 'survival::survfit()'). |
n_clusters |
number of clusters, as defined in 'kml::kml'. |
parAlgo, nbRedrawing |
argumentos passados para 'kml::kml'. |
a data.frame with the resulting groups.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.