Description Usage Arguments Value Examples
View source: R/strata.boosting.R
This function assists in evaluating whether the supplied variable is useful for stratification when fitting a cox proportional hazards model.
1 | strata.boosting(x, survival.time, split = "median")
|
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. |
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.