Learn R Programming

SurvBoost (version 0.1.2)

strata.boosting: Stratification function

Description

This function assists in evaluating whether the supplied variable is useful for stratification when fitting a cox proportional hazards model.

Usage

strata.boosting(x, survival.time, split = "median")

Arguments

x

variable that may be used for stratification, can be categorical or continuous.

survival.time

vector of survival time corresponding to input vector x.

split

specifies how to split a continuous variable. Default is median value.

Value

Generates a plot and table. Table displays the quartiles of the groups of x. A boxplot is also generated to display the distributions of the groups in x visually.

Examples

Run this code
# NOT RUN {
data <- simulate_survival_cox(true_beta=c(1,1,1,1,1,0,0,0,0,0))
strata.boosting(data$strata_idx, data$time)

# }

Run the code above in your browser using DataLab