predict.survSL.coxph: Prediction functions for Cox regression prediction algorithm

View source: R/SL_wrappers.R

predict.survSL.coxphR Documentation

Prediction functions for Cox regression prediction algorithm

Description

Obtains predicted survivals from a fitted survSL.coxph object.

Usage

## S3 method for class 'survSL.coxph'
predict(object, newX, new.times, ...)

Arguments

object

Fitted survSL.coxph object.

newX

New covariate data.frame for which to obtain predictions.

new.times

Times at which to obtain to obtain the predicted survivals.

...

Additional ignored arguments.

Value

Matrix of predictions, with the same number of rows as newX and number of columns equal to the length of new.times. Rows index new observations, and columns index new times at which the survival was computed.


tedwestling/survSuperLearner documentation built on Dec. 12, 2024, 4:16 p.m.