Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* 1. The folder "Export" is already created in my home directory; */
- ___________________________________________________________________________________________________
- /* First option */
- /* Summary Statistics */
- proc means data=STPSAMP.STPEURO stackodsoutput mean stddev min max skewness kurtosis;
- var pop growth birth death imm lifeexp;
- ods output summary = want;
- run;
- proc export data=want outfile = "/home/u63376027/Export/Summary_Stats.xlsx" dbms = xlsx replace;
- run;
- ___________________________________________________________________________________________________
- /* Second option */
- /* Histograms of the all variables" */
- ods excel file='/home/u63376027/Export/Histograms.xlsx' style=seaside;
- title 'Population Histogram';
- proc sgplot data=STPSAMP.STPEURO;
- histogram pop;
- density pop/ type=normal;
- run;
- title 'Growth Rate Histogram';
- proc sgplot data=STPSAMP.STPEURO;
- histogram growth;
- density growth/ type=normal;
- run;
- ods excel close;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement