Advertisement
thulasi

Assignment1_Q4

Feb 4th, 2021
2,495
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SAS 0.59 KB | None | 0 0
  1. footnote 'Thulasi Thirugnanam, 101114637';
  2. options pagesize=45;
  3. ods pdf file="C:\Users\thulasithirugnanam\desktop\STAT2507\Assignment1_Q4.pdf";
  4. data oxygen;
  5. input temp heartrate;
  6. cards;
  7. 35.7 70
  8. 36.3 68
  9. 37.2 80
  10. 37.2 75
  11. 37.2 79
  12. 36.0 75
  13. 36.9 74
  14. 36.9 84
  15. 37.1 73
  16. 37.1 84
  17. 37.3 66
  18. 37.4 68
  19. run;
  20.  
  21. ods graphics off;    
  22.                      
  23. proc reg lineprinter;
  24.  
  25. model heartrate=temp;
  26. plot heartrate*temp="*";  
  27.  
  28.   plot R.*P.="o";          
  29.   plot R.*temp="+";  
  30.   output out=resid R=resid;
  31. quit;
  32.  
  33. proc chart;
  34.   vbar resid;
  35. run;
  36.  
  37. print clm cli;
  38. quit;
  39.  
  40. ods pdf close;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement