0
$\begingroup$

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.

enter image description here

$\endgroup$
5
  • 2
    $\begingroup$ The dist="weibull" argument puts this in the context of an accelerated failure time model, which complicates thinking about hazard ratios (HR). Try using dist="weibullPH" for what the author of flexsurv calls a "more interpretable" result in terms of HR in a vignette. $\endgroup$
    – EdM
    Jan 20, 2023 at 20:32
  • $\begingroup$ Got your point. I did that. but estimates differs between wei and weiph. I need CI for HR from weibull-flexsurvreg output.,agree with your point on AFT context. Otherwise, can you please point me to material for interpreting coefficient from AFT flexsurvreg output ? $\endgroup$
    – kamal
    Jan 20, 2023 at 21:04
  • $\begingroup$ What is estimated will differ between weibull and weibullPH, 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. $\endgroup$
    – EdM
    Jan 20, 2023 at 22:13
  • $\begingroup$ Just curious, can we not all calculate 95CI for HR from weibull fit? Just looking for formula.we have formula for HR as above. $\endgroup$
    – kamal
    Jan 21, 2023 at 1:29
  • $\begingroup$ Given the different parameterizations of the Weibull, I'm not sure that your formula for the HR holds for the AFT form of the model. Please edit the question to include a reference to where you found that formula. $\endgroup$
    – EdM
    Jan 21, 2023 at 18:33

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.