Open helmingstay opened 3 months ago
@mikesweeting Would you mind looking at this please?
Thank you @helmingstay for reporting this bug. I've now made the fix and created a pull request for @chjackson to incorporate. Thanks for spotting this!
I've not considered using standsurv for formal hypothesis testing so cannot help there.
Thanks @mikesweeting - merged https://github.com/chjackson/flexsurv/pull/196
I ran into the following error trying to compute 99% CI for model contrasts with
standsurv()
:I built a minimal(ish) example from examples in the standsurv vignette [1]:
Related: My original question was focused on family-wise error rates for model contrasts, similar to
adjust="tukey"
inemmeans()
[2]. It seemed like a very simple adjustment would be to use wider CI (akin to a Bonferroni correction). I'd be interested to hear anyone's advice on using standsurv() for formal hypothesis testing (e.g. p-value of hazard ratio relative to 1).[1] https://cran.r-project.org/web/packages/flexsurv/vignettes/standsurv.html [2] https://cran.r-project.org/web/packages/emmeans/vignettes/comparisons.html#pairwise