SL.flexsurv.weibull: Accelerated failure time model with Weibull family.

Description Usage Arguments References Examples

View source: R/SL.flexsurv.R

Description

Accelerated failure time model with Weibull family.

Usage

1

Arguments

...

Other arguments passed to SL.flexsurv.

link

Link function

References

Manning WG, Basu A and Mullahy J. Generalized modeling approaches to risk adjustment of skewed outcomes data. Journal of Health Economics 2005; 24(3): 465–488.

Examples

1
2
3
4
5
6
7
# load cost data
data(cost_data)
# fit AFT model with weibull family
fit_flexsurv.weibull <- SL.flexsurv.weibull(Y = cost_data$totalcost, X = cost_data[, c("female", "race")],
                              newX = cost_data[, c("female", "race")])
# get back predictions
pred_flexsurv.weibull <- predict(fit_flexsurv.weibull$fit, newdata = cost_data[,c("female", "race")])

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