Last active
August 29, 2015 14:10
-
-
Save joosti/9ea82eacf9b439185d37 to your computer and use it in GitHub Desktop.
SAS proc means
This file contains 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
/* summary statistics for full sample */ | |
proc means data=work.myData n mean median stddev; | |
OUTPUT OUT=work.meansout n= mean= median= stddev= /autoname; | |
var var1 var2 var3; | |
run; | |
/* as above, but repeated by a group (requires sorting on that variable) */ | |
proc means data=work.myData n mean median stddev; | |
OUTPUT OUT=work.meansout n= mean= median= stddev= /autoname; | |
var var1 var2 var3; | |
by groupvar; | |
run; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment