survfit.prevalence {rprev} | R Documentation |
Form bootstrapped survival curves.
Description
Calculates bootstrapped survival probabilities from the Weibull models fitted
to the prevalence
object.
Usage
## S3 method for class 'prevalence'
survfit(formula, newdata = NULL, ...)
Arguments
formula |
A |
newdata |
A list or dataframe with the covariate values to calculate survival probabilities for. Defaults to using the mean values from the the original dataset that the model was fit to. |
... |
Other arguments to |
Value
An S3 object of class survfit.prev
with the following
attributes:
time |
A vector of time points at which survival probability has been calculated. |
surv |
A matrix of survival probabilities, where the rows represent a different bootstrapped Weibull model, and the columns are each timepoint. |
fullsurv |
A vector of survival probabilities for the predictors provided in newdata. |
[Package rprev version 1.0.5 Index]