woensdag 31 augustus 2011

Stata, ranks and quantiles

I'm a huge fan of Stata, largely preferring the program over SPSS for almost everything, even graphics and tables. Yet ranks and quantiles are quite awkward. The commands needed are:

rank() - using egen, watch out for the order
xtile - basic program included in the software (Stata 11)
xtile2 - permits by-variables, to be installed