Speaking Stata: Self and others

Data for people in a family, firms in a sector, or members of any kind of group are often analyzed using data for the other members in each group. Examples are the number of older children for each child in a family or the mean investment of other firms in the same year. Many such problems yield to simple logic, spelled out here in terms of useful Stata functions and commands. Operations under by:, or an equivalent by() option, are frequently called for, while the egen command offers a key tool for many calculations. Even when looping is needed, some helpful tricks can be identified.


Issue Date:
2014-2014-2014
Publication Type:
Journal Article
ISSN:
1536-8634
Language:
English
Published in:
Stata Journal, Volume 14, Number 2
Page range:
432-444

Record appears in:



 Record created 2017-07-17, last modified 2017-11-10

Fulltext:
Download fulltext
PDF

Rate this document:

Rate this document:
1
2
3
 
(Not yet reviewed)