pd | R Documentation |
Obtains the integration of the probability of having an event during an interval. The specified analysis time interval can span more than one analysis time interval with constant hazard.
pd(
t1 = NA_real_,
t2 = NA_real_,
piecewiseSurvivalTime = 0L,
lambda = NA_real_,
gamma = 0L
)
t1 |
Lower bound of the analysis time interval. |
t2 |
Upper bound of the analysis time interval. |
piecewiseSurvivalTime |
A vector that specifies the starting time of
piecewise exponential survival time intervals. Must start with 0, e.g.,
|
lambda |
A vector of hazard rates for the event. One for each analysis time interval. |
gamma |
The hazard rate for exponential dropout, or a vector of hazard rates for piecewise exponential dropout. |
A value for the integrated probability of having an event during an interval for a treatment group with specified piecewise exponential survival and dropout distributions.
Kaifeng Lu, kaifenglu@gmail.com
# Piecewise exponential survival with hazard 0.0533 in the first 6
# months, and hazard 0.0309 thereafter, and 5% dropout by the end of
# 1 year.
pd(t1 = 1, t2 = 8, piecewiseSurvivalTime = c(0, 6),
lambda = c(0.0533, 0.0309), gamma = -log(1-0.05)/12)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.