data a;
input z p q e;
cards;
1.96 0.95 0.05 0.05
;
data b;
set a;
n=(z*z*p*q)/(e*e);
run;
proc print; run;
proc power;
onesamplefreq test=z method=normal
sides = 2
alpha = 0.05
nullproportion = 0.90
proportion = 0.95
ntotal = .
power = 0.9;
run;
Because your formula is not the one used by POWER. See the details at:
right, I know, I understand that. But one is confidence interval estimation and the 'proc power' is hypothesis testing. They should be more in agreement, right?
Not necessarily. These are different things.
POWER is involved with Type II error. The other approach is not.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.