Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 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. run;
  9.  
  10. data tut5;
  11. set tut4;
  12.  
  13. bmi_klasse=.;
  14. if bmi <= 19 then bmi_klasse=1;
  15. if 19 < bmi <= 25 then bmi_klasse=2;
  16. if 25 < bmi <= 30 then bmi_klasse=3;
  17. if 30 < bmi <= 35 then bmi_klasse=4;
  18. if 35 < bmi <= 40 then bmi_klasse=5;
  19. if 40 < bmi then bmi_klasse=6;
  20. run;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement