# NOT RUN {
## Following the example of 'surv_enrichment':
data(SurvMarkers)
library(survival)
SurvMarkers$surv <- Surv(SurvMarkers$time, SurvMarkers$event)
rslt <- surv_enrichment(formula = surv~x1+x2, data = SurvMarkers, hr = 0.8, a=12, f=36,
cost.screening = 300, cost.keeping = NULL, cost.unit.keeping = 300,
method = "KM", power = 0.9, alpha = 0.05, one.sided = FALSE,
selected.biomarker.quantiles = seq(from = 0, to = 0.9, by = 0.1),
do.bootstrap = FALSE, print.summary.tables = FALSE)
plots <- surv_plot_enrichment(rslt, km.quantiles = c(0,0.25,0.5,0.75))
# }
Run the code above in your browser using DataLab