Description Usage Arguments Value Author(s)
Function to extract survival probability predictions from deeppam. This function works only with pec::pec.
1 2 | ## S3 method for class 'deeppam'
predictSurvProb(object, newdata, times)
|
object |
a keras model (deeppam object). |
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. |
A matrix with as many rows as NROW(newdata) and as many columns as length(times). Each entry should be a probability and in rows the values should be decreasing.
Philipp Kopper, Andreas Bender
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.