data cer3;
input age gender $ weight;
if gender='m' then do;
if weight>200 then wtgrp='Heavy';
if weight<200 then wtgrp='Medium';
if weight<150 then wtgrp='Light';
end;
if gender='f' then do;
if weight>150 then wtgrp='Heavy ';
if weight<150 then wtgrp='Medium';
if weight<110 then wtgrp='Light ';
end;
cards;
47 f 165
7 m 65
42 f 115
32 m 200
51 f 112
60 m 145
72 . 125
;;;;
proc print;
Comments, questions? Please contact
Curt Doetkott
Last Modified: 3:34 Sun, Feb 2, 1997
Published by Information Technology Services