predict.TBFcox {glmBfp}R Documentation

Prediction methods for CoxTBF objects

Description

Predicts survival probabilities at given times. Compatible with predictSurvProb functions required by pec package.

Usage

## S3 method for class 'TBFcox'
predict(object, newdata, times, ...)

Arguments

object

a model fitted with coxTBF

newdata

a dataframe with the same variables as the original data used to fit the object

times

a vector of times to predict survival probability for

...

not used.

Value

A data frame of survival probabilities with rows for each row of newdata and columns for each time.


[Package glmBfp version 0.0-53 Index]