Skip to content

Instantly share code, notes, and snippets.

@marks
Last active August 29, 2015 14:21
Show Gist options
  • Save marks/b74e56bc9eb48772b77d to your computer and use it in GitHub Desktop.
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
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