options nodate pagesize=54 linesize=80; /* Read in the input file */ data ex0508; * infile '../../../data/biostat/ex0508.dat'; infile 'C:\biostat\data\ex0508.dat'; input marital cancer cancer_r; run; /* Obtain crosstabs and chi-square test based on marital status and cancer */ proc freq; table marital*cancer / chisq; run; quit;