BookmarkSubscribeRSS Feed
msecic
Calcite | Level 5

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;

4 REPLIES 4
lvm
Rhodochrosite | Level 12 lvm
Rhodochrosite | Level 12

Because your formula is not the one used by POWER. See the details at:

SAS/STAT(R) 9.3 User's Guide

msecic
Calcite | Level 5

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?

lvm
Rhodochrosite | Level 12 lvm
Rhodochrosite | Level 12

Not necessarily. These are different things.

ballardw
Super User

POWER is involved with Type II error. The other approach is not.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 4 replies
  • 2306 views
  • 0 likes
  • 3 in conversation