Hi

I am trying to replicate the sample size calculation from a 1:1 RCT. The sample size is based on the lower 95%CI for the proportion with success in each of the arms to be above a threshold - it is not powered for an formal comparison between arms.

The inputs/outputs are:
  • Success proportion: 85%
  • Lower 95%CI of success proportion to be above: 73%
  • Power: 80%
  • Alpha: 5% (one-sided)
  • LTFU: 10%
  • Planned enrolment: 54 per arm (not powered for formal comparison between arms)
Is there a way I can do this in Stata using a command (I am using Stata 16.1)? Or would this be something I need to build a simulation for?

Thanks!