Statalist


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

st: AW: Spouse's occupation in a household


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: Spouse's occupation in a household
Date   Fri, 6 Mar 2009 16:16:24 +0100

<> 

http://www.stata.com/support/faqs/data/members.html





HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Quang Nguyen
Gesendet: Freitag, 6. März 2009 16:12
An: [email protected]
Betreff: st: Spouse's occupation in a household

Dear all:

Following is a sample of the household data we have:

Household   Relationship with household head     Occupation
1                  1                                                  4
1                  2                                                  5
1                  3                                                  6
1                  4                                                  8


>From the relationship with household head variable, one knows that 2
is spouse of 2 and 4 is sposue of 4.

The question is how we can generate a variable whose value is the
spouse's occupation. In the above example it looks like:

Household   Relationship with household head     Occupation
spouse'soccupation
1                  1
4                      5
1                  2
5                      4
1                  3
6                      8
1                  4
8                      6


Many thanks!

--
"My father gave me the greatest gift anyone could give another person,
he believed in me." - Jim Valvano
*
*   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/


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index