Abstract
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
References
1.
Berra
T. M.
2013 . Darwin and His Children: His Other Legacy. New York : Oxford University Press.
2.
Browne
J.
1995 . Charles Darwin: Voyaging. Volume I of a Biography. London : Jonathan Cape.
3.
Cox
N. J.
2002 a. Speaking Stata: How to move step by: step . Stata Journal 2 : 86 –102 .
4.
Cox
N. J.
2002 b. Speaking Stata: On getting functions to do the work . Stata Journal 2 : 411 –427 .
5.
Cox
N. J.
2006 . Stata tip 39: In a list or out? In a range or out? Stata Journal 6 : 593 –595 .
6.
Cox
N. J.
2007 a. Stata tip 43: Remainders, selections, sequences, extractions: Uses of the modulus . Stata Journal 7 : 143 –145 .
7.
Cox
N. J.
2007 b. Stata tip 50: Efficient use of summarize . Stata Journal 7 : 438 –439 .
8.
Cox
N. J.
2011 . Speaking Stata: Compared with … . Stata Journal 11 : 305 –314 .
9.
Darwin
G. H.
1875 a. Marriages between first cousins in England and their effects . Journal of the Statistical Society 38 : 153 –182 .
10.
Darwin
G. H.
1875 b. Note on the marriages of first cousins . Journal of the Statistical Society 38 : 344 –348 .
11.
Darwin
G. H.
1877 . On fallible measures of variable quantities, and on the treatment of meteorological observations . Philosophical Magazine 4 : 1 –14 .
12.
Darwin
G. H.
1911 . The Scientific Papers of Sir George Darwin. Volume 4: Periodic Orbits and Miscellaneous Papers. Cambridge : Cambridge University Press.
13.
Freeman
R. B.
1978 . Charles Darwin: A Companion. Folkestone, UK : Dawson.
14.
Gelman
A.
, and
Hill
J.
2007 . Data Analysis Using Regression and Multi-level/Hierarchical Models. Cambridge : Cambridge University Press.
15.
Kantor
D.
, and
Cox
N. J.
2005 . Depending on conditions: A tutorial on the cond() function . Stata Journal 5 : 413 –420 .
16.
Kleiber
C.
, and
Zeileis
A.
2010 . The Grunfeld data at 50 . German Economic Review 11 : 404 –417 .
17.
Stigler
S. M.
1991 . Stochastic simulation in the nineteenth century . Statistical Science 6 : 89 –97 .
