/* Lesson 27-1 */ /* File Name = les2701.sas 01/17/02 */ /* */ /* Original File Name = les1001.sas 06/21/01 */ /* Original File Name = les1002.sas 06/21/01 */ options linesize=72 pagesize=20; data gakusei; infile 'all01.prn'; input seibetsu $ height weight chest jitaku $ kodukai; proc print data=gakusei(obs=10); run; proc freq data=gakusei; tables seibetsu*jitaku/chisq; tables seibetsu*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*seibetsu/chisq norow nocol nopercent; format height clheight.; run; proc freq data=gakusei; tables height*seibetsu/chisq norow nocol nopercent; format height clheight.; output out=out_freq pchi ajchi exact; run; proc print data=out_freq; run;