Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- libname lib "M:\SAS-Tutorium";
- data tut4;
- set lib.tut4;
- bmi=.;
- bmi=gewicht/((groesse/100)^2);
- run;
- data tut5;
- set tut4;
- bmi_klasse=.;
- if bmi <= 19 then bmi_klasse=1;
- if 19 < bmi <= 25 then bmi_klasse=2;
- if 25 < bmi <= 30 then bmi_klasse=3;
- if 30 < bmi <= 35 then bmi_klasse=4;
- if 35 < bmi <= 40 then bmi_klasse=5;
- if 40 < bmi then bmi_klasse=6;
- run;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement