Last chance! 50% off unlimited learning
Sale ends in
Imputation of time-to-event outcomes using the piecewise constant hazard exponential function conditional on observed exposure.
pwe_impute(time, hazard, cutpoints = 0, maxtime = NULL)
A data frame with simulated follow-up times (time
) and
respective event indicator (event
, 1 = event occurred, 0 =
censoring).
vector. The observed time for patient that have had no event or
passed maxtime
.
vector. The constant hazard rates for exponential failures.
vector. The change-point vector indicating time when the
hazard rates change. Note the first element of cutpoints
should
always be 0.
scalar. Maximum time before end of study.
If a subject is event-free at time S(t)
is the survival function. If
pwe_impute(time = c(3, 4, 5), hazard = c(0.002, 0.01), cutpoints = c(0, 12))
pwe_impute(time = c(3, 4, 5), hazard = c(0.002, 0.01), cutpoints = c(0, 12),
maxtime = 36)
pwe_impute(time = 19.621870008, hazard = c(2.585924e-02, 3.685254e-09),
cutpoints = c(0, 12), maxtime = 36)
Run the code above in your browser using DataLab