plotCP2cure: Plot conditional probability of Pts belonging to long-term...

View source: R/plotCP2cure.R

plotCP2cureR Documentation

Plot conditional probability of Pts belonging to long-term survivors

Description

A figure function to show conditional probability of Pts belonging to long-term survivors.

Usage

plotCP2cure(CT.object, timeunit = 6, alpha.f = 0.3, ...)

Arguments

CT.object

Input. Object of adjustment.

timeunit

Input. Time scale.

alpha.f

Input. Alpha transparency in graphics::polygon.

...

Input. Arguments in plot.

Details

P(Pts belongs to long-term survivors | T>t) = (1 - pi)/smix(t). The confidence interval are defined as ((1 - pi.L)/smix(t), (1 - pi.U)/smix(t)).

Examples

library(CoxTEL)
s1mix.chosen <- c(93, 83, 74, 66, 61, 56, 52, 49, 44, 42)/100
s0mix.chosen <- c(86, 75, 62, 55, 48, 42, 40, 36, 33, 33)/100
pi1.est <- 1 - 0.42; pi0.est <- 1 - 0.33 # Proportion of short-term survivors
HR_cox <- 0.68; HR_cox_CI <- c(0.53, 0.87)
CT.object <- adjustment(HR_cox, HR_cox_CI, s1mix.chosen, s0mix.chosen, pi1.est, pi0.est)
plotCP2cure(CT.object, xlab="Months")


cyhsuTN/AdjCOXPH documentation built on July 4, 2024, 8:05 p.m.