Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Collapsing records in STATA


From   "Erica Seiguer" <[email protected]>
To   <[email protected]>
Subject   st: Collapsing records in STATA
Date   Thu, 15 Jul 2004 16:05:44 -0400

Suppose you have a logit model where you are trying to estimate the
number of children a couple will have. Let's say there are 3 couples, 1,
2 and 3.

In my dataset, for each couple, I have several records which track, year
by year, if they have had a child, and if so, when and the sex of the
child. I want to collapse these separate records into one horizontal
record tracking the couple. Can anyone point me to some stata code that
might assist me?

Thanks!

Erica

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index