Documentation Example 7 for PROC POWER
/****************************************************************/
/* S A S S A M P L E L I B R A R Y */
/* */
/* NAME: pwrex07 */
/* TITLE: Documentation Example 7 for PROC POWER */
/* (Confidence Interval Precision) */
/* PRODUCT: STAT */
/* SYSTEM: ALL */
/* KEYS: power */
/* sample size */
/* power analysis */
/* half-width */
/* graphs */
/* PROCS: POWER */
/* DATA: */
/* */
/* SUPPORT: John Castelloe */
/* REF: */
/* MISC: Graphs produced by ODS Graphics in PROC POWER */
/* require a style that distinguishes curves based */
/* on a combination of color, line style, and symbol */
/* marker. Styles that are well-suited for use in */
/* PROC POWER include: STATISTICAL, ANALYSIS, DEFAULT, */
/* LISTING, and HTMLBLUECML. */
/****************************************************************/
*
ods listing style=htmlbluecml;
ods graphics on;
proc power;
onesamplemeans ci=t
alpha = 0.1
halfwidth = 1000
stddev = 25000 45000
probwidth = 0.95
ntotal = .;
plot x=effect min=500 max=2000;
run;
ods graphics off;