options pagesize=150 linesize=68;
filename grafout 'g07.ps';
goptions device=pslmono gsfname=grafout 
   rotate=landscape gsfmode=append;
options linesize=64;
/**************************************************************/
/* Mark A: Binomial Power                                     */
/**************************************************************/
* You can specify multiple scenarios for one quantity, but not;
* for multiple quantities.  Default method for binomial is;
* exact.;
proc power ;
  onesamplefreq test=z sides=2 nullp=.5 p=.6 ntotal=100 power=.;
  onesamplefreq method=normal test=z sides=2 nullp=.5 p=.6 
    ntotal=100 50 power= . ;
  onesamplefreq method=normal test=z sides=1 alpha=.025  
    nullp=.5 p=.6 ntotal=100 50 power= . ;
  onesamplefreq method=normal test=z  sides=2 
    nullp=.5 p=.6 ntotal=. power=.8;
  plot;
  run;
* It looks like SAS won't do the arc sine transformation.;