The by varlist: construct is reviewed, showing how it can be used to tackle a variety of problems with group structure. These range from simply doing some calculations for each of several groups of observations to doing more advanced manipulations making use of the fact that with this construct, subscripts and the built-ins _n and _N are all interpreted within groups. A fairly complete tutorial on numerical evaluation of true and false conditions is included.
CITATION STYLE
Cox, N. J. (2002). Speaking Stata: How to Move Step By: Step. The Stata Journal: Promoting Communications on Statistics and Stata, 2(1), 86–102. https://doi.org/10.1177/1536867x0200200106
Mendeley helps you to discover research relevant for your work.