survfit.prevalence: Form bootstrapped survival curves.

Description Usage Arguments Value

View source: R/survfit.prev.R

Description

Calculates bootstrapped survival probabilities from the Weibull models fitted to the prevalence object.

Usage

1
2
## S3 method for class 'prevalence'
survfit(formula, newdata = NULL, ...)

Arguments

formula

A prevalence object.

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 survfit.

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.


rprev documentation built on May 4, 2021, 5:08 p.m.