Description Usage Arguments References Examples
Accelerated failure time model with Weibull family.
1 | SL.flexsurv.weibull(..., dist = "weibull")
|
... |
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.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")])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.