Information Technology Services

data cer2;
  input age gender $ weight;
   if age>= 0 & age<10 then agecat=0;
   if age>=10 & age<20 then agecat=1;
   if age>=20 & age<30 then agecat=2;
   if age>=30 & age<40 then agecat=3;
   if age>=40 & age<50 then agecat=4;
   if age>=50 then agecat=5;
 cards;
 7 f  50
 7 m  65
13 f  75
13 m  92
27 f 115
27 m 130
34 f 120
34 m 175
42 f 115
42 m 186
60 f 112
60 m 145
;;;;
proc print;

Home Menu
Comments, questions? Please contact Curt Doetkott
Last Modified: 3:25 Sun, Feb 2, 1997
Published by Information Technology Services