Home  >>  Archives  >>  Volume 2 Number 1  >>  pr0004

The Stata Journal
Volume 2 Number 1: pp. 86-102



Subscribe to the Stata Journal
cover

Speaking Stata: How to move step by: step

Nicholas J. Cox
University of Durham, UK
[email protected]
Abstract.   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.
Terms of use     View this article (PDF)

View all articles by this author: Nicholas J. Cox

View all articles with these keywords: by, sorting, subscripts, true and false, _n, _N

Download citation: BibTeX  RIS

Download citation and abstract: BibTeX  RIS