10/04/2007

proc means statement

proc means is a procedure to use when you are only interested in the basic descriptive statistics.
proc means general statement:
...
...
..
run;
proc means data=dataset ;
by variables;
var variables;
run;
we have some options there. when we write only proc means SAS system gives us sample size, minimum maximum values,average and standard deviation.
some useful options:
range: the range
sum:the sum
var:the variance
stderr:the standard error of the mean
prt: p value for this test different from "0"
clm: two sided 95% confidence interval

example:

DATA WAGES;
INPUT SUBJECT WAGE;
DATALINES;
1 609
2 601
3 592
4 604
5 569
6 625
7 655
8 582
9 583
10 610
;

PROC MEANS DATA=WAGES clm;
VAR WAGE;
RUN;

this program gives us 10 workers' mean wage ,standard deviation min and max

if we add clm it gives 2 sided confidence interval for the mean.

No comments: