SL.flexsurv.lognormal: Accelerated failure time model with log-Normal family.

Description Usage Arguments References Examples

View source: R/SL.flexsurv.R

Description

See Manning (2005) and SL.flexsurv.

Usage

1
SL.flexsurv.lognormal(..., dist = "lognormal")

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.lognormal <- SL.flexsurv.lognormal(Y = cost_data$totalcost, X = cost_data[, c("female", "race")],
                              newX = cost_data[, c("female", "race")])
# get back predictions
pred_flexsurv.lognormal <- predict(fit_flexsurv.lognormal$fit, newdata = cost_data[,c("female", "race")])

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