predict_survival_probability: Predicts survival probability for given individuals at...

Description Usage Arguments Value

View source: R/surv_model.R

Description

This generic method is required for any survival object used in the main prevalence function.

Usage

1
predict_survival_probability(object, newdata, times)

Arguments

object

The survival object itself

newdata

Simulated incident individuals, with the same attributes specified in extract_covars and found in the supplied registry data to prevalence.

times

The time at which to estimate the survival probability of the individual in the corresponding row of newdata. Must have as many times as newdata has rows.

Value

A vector with the same length as times providing the survival probability estimates.


stulacy/rprev-dev documentation built on May 7, 2021, 4:17 a.m.