DATA LRT; Input major $ wealth $ n; cards; Genetics Rich 5 Genetics Poor 2 Other Rich 3 Other Poor 3 ; proc freq; table major*wealth/chisq norow nocol; weight n; run;