Skip to content

Instantly share code, notes, and snippets.

@queirozfcom
Created February 23, 2018 02:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save queirozfcom/688d1dfe47af9a61463de26fffb85210 to your computer and use it in GitHub Desktop.
Save queirozfcom/688d1dfe47af9a61463de26fffb85210 to your computer and use it in GitHub Desktop.
data mytable;
length name $20.;
input id name $ balance;
DATALINES;
1 alice 5.12
2 bob 12.31
3 charlie 45.14
4 daniel 32.78
4 ella 20.23
5 fay 70.89
6 gabe 29.67
7 henry 55.66
8 ivan .
;
run;
proc univariate data=mytable;
var balance;
run;
proc univariate data=mytable;
var balance;
histogram balance / vaxis=0 to 100 by 10 midpoints=0 to 100 by 10;
run;
proc univariate data=mytable;
var balance;
histogram balance / vaxis=0 to 100 by 10 midpoints=0 to 100 by 10 cgrid=black;
run;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment