predict.survSL.expreg: Prediction functions for parametric survival model prediction...

View source: R/SL_wrappers.R

predict.survSL.expregR Documentation

Prediction functions for parametric survival model prediction algorithms

Description

Obtains predicted survivals from a fitted parametric survival regression object.

Usage

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

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

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

Arguments

object

Fitted survSL.expreg, survSL.weibreg, etc. 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.