Learn R Programming

SurvivalClusteringTree

Outcome-guided clustering by recursive partitioning methods.

Installation

remotes::install_github("luyouepiusf/SurvivalClusteringTree")

Introduction

Suppose that we are given a dataset of samples with survival outcomes and sample features. The main objective of the method is to identify several clusters of samples with similar survival outcomes and similar features. The package implements a novel statistical machine learning method to perform the task.

Algorithm

  1. Perform bootstrap aggregation. For each bootstrap dataset, build a survival tree by recursively sweeping through all variables to find the best split in the sample space, and repeat until no further splits can be found.

  2. Define a distance between each pair of samples in the original dataset with respect to the survival tree. The distances between samples in the same terminal node are 0. For samples that are not in the same terminal node, there is a unique path on the tree connecting the two terminal nodes, the sum of the absolute log-rank test z-scores on the path is the distance between them.

  3. Aggregate the distances by averaging pairwise distances as the final distance.

  4. Apply hierarchical clustering analysis to the distance matrix to identify clusters.

Copy Link

Version

Install

install.packages('SurvivalClusteringTree')

Monthly Downloads

149

Version

1.1.1

License

GPL (>= 2)

Maintainer

Lu You

Last Published

May 24th, 2024

Functions in SurvivalClusteringTree (1.1.1)

predict_weights

Predict Weights of Samples in Terminal Nodes Based on a Survival Tree Fit (Data Supplied as a Dataframe)
predict_distance_tree

Predict Distances Between Samples Based on a Survival Tree Fit (Data Supplied as a Dataframe)
predict_distance_tree_matrix

Predict Distances Between Samples Based on a Survival Tree Fit (Data Supplied as Matrices)
predict_distance_forest

Predict Distances Between Samples Based on a Survival Forest Fit (Data Supplied as a Dataframe)
survival_forest

Build a Survival Forest (Data Supplied as a Dataframe)
SurvivalClusteringTree-package

tools:::Rd_package_title("SurvivalClusteringTree")
predict_distance_forest_matrix

Predict Distances Between Samples Based on a Survival Forest Fit (Data Supplied as Matrices)
plot_survival_tree

Visualize the Fitted Survival Tree
survival_forest_matrix

Build a Survival Forest (Data Supplied as Matrices)
predict_weights_matrix

Predict Weights of Samples in Terminal Nodes Based on a Survival Tree Fit (Data Supplied as Matrices)
survival_tree

Build a Survival Tree (Data Supplied as a Dataframe)
survival_tree_matrix

Build a Survival Tree (Data Supplied as Matrices)