rmst | R Documentation |
Obtains the restricted mean survival time over an interval.
rmst(t1 = 0, t2 = NA_real_, piecewiseSurvivalTime = 0L, lambda = NA_real_)
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. |
The integral of the survival function from t1
to t2
Kaifeng Lu, kaifenglu@gmail.com
rmst(t1 = 0, t2 = 7, piecewiseSurvivalTime = c(0, 6),
lambda = c(0.0533, 0.0309))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.