survival_tree_matrix {SurvivalClusteringTree} | R Documentation |
Build a Survival Tree (Data Supplied as Matrices)
Description
The function
survival_tree_matrix
build a survival tree given the survival outcomes and predictors of numeric and factor variables.
Usage
survival_tree_matrix(
time,
event,
matrix_numeric,
matrix_factor,
weights = rep(1, length(time)),
significance = 0.05,
min_weights = 50,
missing = "omit",
test_type = "univariate",
cut_type = 0
)
Arguments
time |
survival times, a numeric vector.
|
event |
survival events, a logical vector.
|
matrix_numeric |
numeric predictors, a numeric matrix.
|
matrix_factor |
factor predictors, a character matrix.
|
weights |
sample weights, a numeric vector.
|
significance |
significance threshold, a numeric value.
Stop the splitting algorithm when no splits give a p-value smaller than |
min_weights |
minimum weight threshold, a numeric value.
The weights in a node are greater than |
missing |
a character value that specifies the handling of missing data.
If |
test_type |
a character value that specifies the type of statistical tests.
If |
cut_type |
an integer value that specifies how to cut between two numeric values.
If |
Details
Build a Survival Tree (Data Supplied as Matrices)
Value
A list containing the information of the survival tree fit.