Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: ordering records


From   "Ricardo Guimaraes" <[email protected]>
To   [email protected]
Subject   st: ordering records
Date   Tue, 06 Jun 2006 18:01:02 +0200

I have the following panel data .



| surmonth iddom i sthome kid_seq age |
|--------------------------------------------------|
1. | 1 560036 1 1 . 57 |
2. | 1 560036 2 2 . 51 |
3. | 1 560036 3 3 1 27 |
4. | 1 560036 4 3 1 16 |
5. | 1 560036 5 3 1 13 |

"surmonth" is time; "iddom" identifies a family; "i" an individuo in the family;
"sthome" is the status in the family (1=head, 2=spouse; 3=kids) and "age". kid_seq was my attempt
to create a order from the older to the younger kid.

Question:
How to create a variavel (let`s say, dep_seq) for each family ordering the kids from the older to the
younger.

sincerely,
Ricardo



Ricardo Guimaraes
Junior Researcher
Center for Development Research (ZEF) - University of Bonn
Walter-Flex Str., 3
53113 Bonn
Germany
*
* 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