View source: R/pec-eha-aftreg.R
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
.
1 2 | ## S3 method for class 'aftreg'
predictSurvProb(object, newdata, times, ...)
|
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.