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


[Package rprev version 1.0.5 Index]