data bmivars;
set inpath.ihis_00002 (where=(BMICALC ne 996));
* POPUNDERWEIGHTED ;
if BMICALC <18.5 then weight_under = 1 ;
else weight_under =0 ;
run ;
proc freq data=bmivars ;
tables weight_under / norow nocol out=weight_under_1991 ;
weight SAMPWEIGHT ;
where year in (1991);
by year ;
run ;
proc freq data=bmivars ;
tables weight_under / norow nocol out=weight_under_1992 ;
weight SAMPWEIGHT ;
where year in (1992);
by year ;
run ;
proc freq data=bmivars ;
tables weight_under / norow nocol out=weight_under_1993 ;
weight SAMPWEIGHT ;
where year in (1993);
by year ;
run ;