BookmarkSubscribeRSS Feed
jsuebersax
Fluorite | Level 6

I'd like to use Proc Power to estimate a required sample size as follows:
Outcome is binary (Bernoulli trial).
Expected population success rate is 0.025.
What sample size will produce a 95% confidence interval for success rate with a width of 0.036 (half width = 0.018)?

 

Question: Can this be done with Proc Power and if so how? The CI method (exact, Wald, etc.) isn't important at this point.

Thanks for help!

--
John Uebersax

1 REPLY 1
StatDave
SAS Super FREQ

Specify a wide range of sample sizes (ntotal=) and then whittle it down to find the desired sample size.

proc power;
   onesamplefreq ci
      halfwidth = 0.018
      proportion = 0.025
      ntotal = 110 to 120
      probwidth = .;
run;

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1137 views
  • 1 like
  • 2 in conversation