predict.survSL.pchreg: Prediction functions for piecewise constant hazard regression

View source: R/SL_wrappers.R

predict.survSL.pchregR Documentation

Prediction functions for piecewise constant hazard regression

Description

Obtains predicted survivals from a fitted piecewise constant hazard regression object.

Usage

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

Arguments

object

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