Chen_2016_event_time_piecewise_exp_abovetime0 {EventPredInCure}R Documentation

Function to generate event time with piecewise exponential distribution for ongoing subject in the existence of cured population

Description

generate event time under the delay-treatment effect and cured population setting

Usage

Chen_2016_event_time_piecewise_exp_abovetime0(
  u,
  p,
  time0 = 0,
  piecewiseSurvivalTime = 0,
  piecewisehazard
)

Arguments

u

a scalar with between 0 and 1, which is the conditional survival probability at the event time.

p

the proportion of cured population in the control arm

time0

the observed ongoing survival time

piecewiseSurvivalTime

A vector that specifies the time intervals for the piecewise exponential survival distribution. Must start with 0, e.g., c(0, 60) breaks the time axis into 2 event intervals: [0, 60) and [60, Inf). By default, it is set to 0.

piecewisehazard

A vector that specifies the hazard rate in intervals for the piecewise exponential survival distribution.

Value

the event time

References


[Package EventPredInCure version 1.0 Index]