data int_cnt;
set int cnt;
*derive new variable;
bmi_change=bmi_9mos-bmi_base;
if group='int' then do;
if bmi_change >-3 and bmi_change <0 then delete;
end;
if group='cnt' then do;
if bmi_change>0 then delete;
end;
run;
proc print data=int_cnt;
run;
I think it would be better for you to put bmi_change < 0 for the first condition. In this data, you did not have any that were no change, but technically a decrease would have to be a negative value in bmi_change. Also, increase means bmi_change would be > 0. 0 would represent no change.
... View more