I am trying to calculate confidence interval 95% for hazard ratio from flexsurvreg-weibull distribution output. Please provide the formula of the same.
I have formula for HR = exp(-beta)^shape. But could not find formula for 95% CI for HR.
I am trying to calculate confidence interval 95% for hazard ratio from flexsurvreg-weibull distribution output. Please provide the formula of the same.
I have formula for HR = exp(-beta)^shape. But could not find formula for 95% CI for HR.
dist="weibull"argument puts this in the context of an accelerated failure time model, which complicates thinking about hazard ratios (HR). Try usingdist="weibullPH"for what the author offlexsurvcalls a "more interpretable" result in terms of HR in a vignette. – EdM Jan 20 '23 at 20:32weibullandweibullPH, but the fundamental Weibull model is the same. It's just represented in a different parameterization. What's called "scale" in the AFT form is not the same as what's called "scale" in the PH form, so covariates modeled as affecting "scale" will have different coefficient values in the model types. Predictions at the same covariate values should still be the same for both model types. This page goes into details and explains how to interpret coefficients in both cases. – EdM Jan 20 '23 at 22:13