Advertisement
elena1234

histograms in SAS

Apr 8th, 2023 (edited)
1,265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SAS 0.81 KB | None | 0 0
  1. ods excel file='/home/u63376027/Export/Histograms.xlsx' style=seaside;
  2. title 'Population Histogram';
  3. proc sgplot data=STPSAMP.STPEURO;
  4.     histogram pop;
  5.     density pop/ type=normal;
  6. run;
  7.  
  8. title 'Growth Rate Histogram';
  9. proc sgplot data=STPSAMP.STPEURO;
  10.     histogram growth;
  11.     density growth/ type=normal;
  12. run;
  13.  
  14. title 'Birth Rate Histogram';
  15. proc sgplot data=STPSAMP.STPEURO;
  16.     histogram birth;
  17.     density birth/ type=normal;
  18. run;
  19. ods excel close;
  20.  
  21. _______________________________________________________________
  22. /* Customize Histoplot with PERCENT7.2 format and grid*/
  23. ods excel file='/home/u63376027/Export/Growth_Histograms.xlsx' style=seaside;
  24. proc sgplot data=STPSAMP.STPEURO;
  25. histogram growth;
  26. density growth/ type=normal;
  27. xaxis grid values= (-0.04 to 0.04 by 0.001);
  28. run;
  29. ods excel close;
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement