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;

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 1249 views
  • 1 like
  • 2 in conversation