Description Usage Arguments References Examples
See Manning (2005) and SL.flexsurv
.
1 | SL.flexsurv.lognormal(..., dist = "lognormal")
|
... |
Other arguments passed to |
link |
Link function |
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.
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")])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.