predict.SL.flexsurv: Prediction method for accelerated failure time models

Description Usage Arguments Value

View source: R/SL.flexsurv.R

Description

The numerical integration step can be unstable and we have tried to build in checks to guard against this. In particular, we first try to integrate with upper limit = Inf, but if that fails move to 1e8, which sometimes is able to provide a sane answer when upper limit = Inf fails. The function keeps trying smaller and smaller values, but will not go smaller than 1e6. In that case it returns a random number between 0 and object$randomUpper.

Usage

1
2
## S3 method for class 'SL.flexsurv'
predict(object, newdata, ...)

Arguments

object

An object of class SL.smearglm

newdata

A data.frame to generate predictions for

...

Other arguments (unused)

Value

A vector of numeric predictions


wuziyueemory/twostageSL documentation built on Oct. 19, 2020, 3:45 p.m.