strata.boosting: Stratification function

Description Usage Arguments Value Examples

View source: R/strata.boosting.R

Description

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

Usage

1
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

1
2
data <- simulate_survival_cox(true_beta=c(1,1,1,1,1,0,0,0,0,0))
strata.boosting(data$strata_idx, data$time)

SurvBoost documentation built on Sept. 20, 2019, 5:04 p.m.