Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Linking information from other family members


From   Quang Nguyen <[email protected]>
To   [email protected]
Subject   st: Linking information from other family members
Date   Wed, 9 Feb 2011 03:33:07 -1000

We have a data that have information on migration status and year of
migration for each member. The migration took place in different
years. The member we're interested in the child's age of the household
when each migration occured. Example of the data as follows:

Family_id    Relationship    Migration     Year_migration     Y1     Y2    Y3
1                        1                 1                   1998
1                        2                 1                   2001
1                        3                 1                   2008
1                        4                 0
           1998   2001   2008
1                        5                 0
           1998   2001   2008


How can we generate variables Y1, Y2 , Y3 as above?
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index