Last active
August 29, 2015 14:21
-
-
Save marks/b74e56bc9eb48772b77d to your computer and use it in GitHub Desktop.
Example SAS code bringing in data from a Socrata Open Data Portal (open.whitehouse.gov in this case). Output can be seen at http://imgur.com/m6ozopR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filename datain url | |
'http://open.whitehouse.gov/resource/i9g8-9web.csv?$limit=50000'; | |
proc import datafile=datain out=whsalaries dbms=csv replace; | |
getnames=yes; | |
/* proc print data=whsalaries; */ | |
proc means; | |
proc boxplot data=whsalaries; | |
plot Salary*Pay_Basis; | |
proc freq data=whsalaries; | |
tables Status Pay_Basis Position_Title / nocum; | |
run; | |
/* OUTPUT: http://imgur.com/m6ozopR */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment