EconPapers    
Economics at your fingertips  
 

Speaking Stata: How to move step by: step

Nicholas Cox

Stata Journal, 2002, vol. 2, issue 1, 86-102

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. Copyright 2002 by Stata Corporation.

Keywords: by; sorting; subscripts; true and false (search for similar items in EconPapers)
Date: 2002
Note: Correction: p.87, 3d para, "and which in turn go AFTER uppercase letters..."
References: Add references at CitEc
Citations: View citations in EconPapers (11)

Downloads: (external link)
http://www.stata-journal.com/sjpdf.html?articlenum=pr0004 (application/pdf)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:tsj:stataj:v:2:y:2002:i:1:p:86-102

Ordering information: This journal article can be ordered from
http://www.stata-journal.com/subscription.html

Access Statistics for this article

Stata Journal is currently edited by Nicholas J. Cox and Stephen P. Jenkins

More articles in Stata Journal from StataCorp LLC
Bibliographic data for series maintained by Christopher F. Baum () and Lisa Gilmore ().

 
Page updated 2025-03-29
Handle: RePEc:tsj:stataj:v:2:y:2002:i:1:p:86-102