predict.survSL.km: Prediction functions for Kaplan-Meier prediction algorithm

View source: R/SL_wrappers.R

predict.survSL.kmR Documentation

Prediction functions for Kaplan-Meier prediction algorithm

Description

Obtains predicted survivals from a fitted survSL.km object.

Usage

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

Arguments

object

Fitted survSL.km 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.