/**********************************************************************/ data vote; input gender $ vote $ count; cards; male yes 12 male no 38 female yes 18 female no 32 ; proc freq; weight count; table gender*vote / chisq; run; /**********************************************************************/