predictSurvProb.aftreg: Survival probability for eha::aftreg objects

Description Usage Arguments

View source: R/pec-eha-aftreg.R

Description

The function is named to be compatible with pec package. However, pec::pec currently does not allow method = 'aftreg'. Therefore, this function is only used internally in pec_cv. The calculation of the Survival probability is based on the formula given in ?eha::aftreg.

Usage

1
2
## S3 method for class 'aftreg'
predictSurvProb(object, newdata, times, ...)

Arguments

object

A fitted model from which to extract predicted survival probabilities

newdata

A data frame containing predictor variable combinations for which to compute predicted survival probabilities.

times

A vector of times in the range of the response variable, e.g. times when the response is a survival object, at which to return the survival probabilities.

...

Additional arguments that are passed on to the current method.


adibender/ldatools documentation built on March 7, 2020, 5:30 a.m.