Statalist


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

Re: st: RE: Spouse's occupation in a household


From   Quang Nguyen <quangn@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: Spouse's occupation in a household
Date   Fri, 6 Mar 2009 09:14:34 -1000

Thanks Nick and Martin.
Have A Great Day!
Sincerely yours,

Quang

On Fri, Mar 6, 2009 at 5:18 AM, Nick Cox <n.j.cox@durham.ac.uk> wrote:
> This is an FAQ.
>
> FAQ     . . Creating variables recording prop. of the other members of a
> group
> 4/05
>
> How do I create variables summarizing for each individual properties of
> the other members of a group?
>
> http://www.stata.com/support/faqs/data/members.html
>
> Nick
> n.j.cox@durham.ac.uk
>
> Quang Nguyen
>
> 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
>
>
> *
> *   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/
>



-- 
"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/



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