predict_survival_probability {rprev} | R Documentation |
Predicts survival probability for given individuals at specific times.
Description
This generic method is required for any survival object used in the main
prevalence
function.
Usage
predict_survival_probability(object, newdata, times)
Arguments
object |
The survival object itself |
newdata |
Simulated incident individuals, with the same attributes specified in
|
times |
The time at which to estimate the survival probability of the individual
in the corresponding row of |
Value
A vector with the same length as times
providing the survival probability
estimates.
[Package rprev version 1.0.5 Index]