This procedure performs basic analyses for one-way to n-way frequency and contingency tables in addition to computing tests and measuring association between variables.
ods graphics on;
proc freq data=dataname1 noprint;
title1 'My FREQ Analysis';
table var1 var2 var3*var4 var3*var4*var5
/plots = freqplot(type=dotplot)
all
chisq
relrisk
nocol
norow
nocum
nofreq
nopercent
noprint
binomial (ac wilson exact jeffreys)
alpha = 0.1
out=dataname2
outcum
outpct;
exact pchi or;
weight Count;
run;
ods graphics off;