I am trying to get frequency table from categorical variable. I get no output . error says my data are missing. here is my code :
data one;
input overweight $ hours;
if hours <= 2 then hours= 'low';
if hours > 2 then hours= 'high';
if hours= 'high' then d=1;
else d=0;
datalines;
yes 8.0
no 0.5
yes 2.0
yes 6.5
.
.
.
;
proc freq data=one order=data;
by hours;
table overweight*hours/cmh;
run;
Thanks