Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Better support for exact binomial tests (one- and two-sample) #39

Open
wolbersm opened this issue Jun 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@wolbersm
Copy link

wolbersm commented Jun 13, 2024

My understanding is that currently rpact only provides limited support for single-arm trials with binomial endpoints getSampleSizeRates(..., groups = 1, normalApproximation = F).

The request is to enhance support for single arm trials and extend support to two-arm trials.

Requests for enhancements/clarifications for single arm trials:

  • Due to the discreteness of the binomial distribution, the targeted type I error cannot be exactly achieved and the actual type I error varies with sample size. As a consequence, power does not increase monotonically with sample size. To account for this, rpact appears to calculate sample size conservatively, i.e. it chooses the sample size n such that the targeted power is not only achieved for this sample size $n$ but also for all sample sizes $>n$. It would be great if a this was clarified in the help and perhaps a non-conservative calculation also supported (as in gsDesign::nBinomial1Sample which has an argument conservative).
  • rpact reports critical values on the treatment effect scale based on a normal approximation. This is somewhat confusing here because it does not match the exact critical value based on the binomial distribution.
  • For designs with interim analyses, rpact uses a multivariate normal approximation to the joint distribution of test statistics across interims. Again, this implies that the calculation of stopping probabilities does not match the exact binomial calculations.

Requests for two arm trials:

  • It would be great to add some support for two-arm trials (especially for the case without interim analyses), e.g. along the lines of what's implemented in the Exact package.

Thanks a lot for considering!

@fpahlke fpahlke added the enhancement New feature or request label Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants