predictSurvProb.deeppam: Predicting Survival Probabilites

Description Usage Arguments Value Author(s)

View source: R/predict.R

Description

Function to extract survival probability predictions from deeppam. This function works only with pec::pec.

Usage

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

Arguments

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.

Value

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.

Author(s)

Philipp Kopper, Andreas Bender


pkopper/deeppam documentation built on Jan. 19, 2021, 12:39 a.m.