Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. libname lib "M:\SAS-Tutorium";
  2.  
  3. data tut4;
  4. set lib.tut4;
  5.  
  6. bmi=.;
  7. bmi=gewicht/((groesse/100)^2);
  8.  
  9. bmi_klasse=.;
  10. if . < bmi <= 19 then bmi_klasse=1;
  11. if 19 < bmi <= 25 then bmi_klasse=2;
  12. if 25 < bmi <= 30 then bmi_klasse=3;
  13. if 25 < bmi <= 30 then bmi_klasse=3;
  14. if 25 < bmi <= 30 then bmi_klasse=3;
  15. if 25 < bmi <= 30 then bmi_klasse=3;
  16.  
  17. run;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement