Thursday, October 25, 2007

proc freq

## proc freq oder = data;

## No column totals, row totals and percent
tables var1*var2 / nocol norow nopercent;

## Odds Ratio and Relative Risk
tables var1*var2 / CMH;

## McNemar's test and Kappa
tables var1*var2 / AGREE;

## obtain cell counts
proc freq data= data_name;
tables var1*var2*var3 / sparse out= out_name;

No comments: