/* Lesson 22-1 */ /* File Name = les2201.sas 11/21/02 */ /* */ /* Original File Name = les1001.sas 06/20/02 */ /* Original File Name = les1002.sas 06/20/02 */ options linesize=72 pagesize=20; data gakusei; infile 'all02.prn' firstobs=2; input sex $ height weight chest jitaku $ kodukai carrier $ tsuuwa; proc print data=gakusei(obs=10); run; proc freq data=gakusei; tables sex*jitaku/chisq; tables sex*jitaku/chisq norow nocol nopercent; run; proc format; value clheight low-<150=' -149' 150-<160='150-159' 160-<170='160-169' 170-<180='170-179' 180-high='180- ' other ='missing'; run; proc freq data=gakusei; tables height*sex/chisq norow nocol nopercent; format height clheight.; run;