WeibullReg
performs Weibull regression using the survreg
function, and transforms the
estimates to a more natural parameterization. Additionally, it produces hazard ratios (corresponding to the proportional
hazards interpretation), and event time ratios (corresponding to the accelerated failure time interpretation) for all
covariates.
WeibullReg(formula, data = parent.frame(), conf.level = 0.95)
The formula for the Weibull regression model.
The transformed maximum likelihood estimates, with standard errors.
The hazard ratios for each of the predictors, with \(1 - \alpha\) level confidence intervals.
The event time ratios (acceleration factors) for each of the predictors, with \(1 - \alpha\) level confidence intervals.
The summary output from the original survreg
model.
A Surv
formula.
The dataset containing all variables referenced in formula
.
Specifies that \(1 - \alpha\) level confidence intervals for the hazard and event time ratios should be produced.
Sarah R. Haile, Epidemiology, Biostatistics and Prevention Institute (EBPI), University of Zurich, sarah.haile@uzh.ch
Details regarding the transformations of the parameters and their standard errors can be found in Klein and
Moeschberger (2003, Chapter 12). An explanation of event time ratios for the accelerated failure time interpretation of
the model can be found in Carroll (2003). A general overview can be found in the vignette("weibull")
of this package, or in the documentation for ConvertWeibull
.
Carroll, K. (2003). On the use and utility of the Weibull model in the analysis of survival data. Controlled Clinical Trials, 24, 682--701.
Klein, J. and Moeschberger, M. (2003). Survival analysis: techniques for censored and truncated data. 2nd edition, Springer.
Requires the package survival. This function depends on ConvertWeibull
. See also
survreg
.
data(larynx)
WR <- WeibullReg(Surv(time, death) ~ factor(stage) + age, data = larynx)
WR
Run the code above in your browser using DataLab