Dear Nick,
I looked at what you put together on Stata faqs
http://stata.com/support/faqs/data/members.html
so could you may be help me in this.
I have one dataset so I don't need to merge but to separate members of
household out but then be able to run a
reg income ageofwife ageofhusband schoolingofwife fe
This is how I defined
gen wife=0
replace wife=1 if ms==2 & sex==1 & head==2
[ms is marital status, taking value 2 if married
sex is gender, taking value 1 if female
head is the relationship to hh head, taking value 2 if wife]
gen husband=0
replace husband=1 if ms==2 & sex==1 & head==1
I have one dataset so I don't need to merge but to separate members of
household out but then be able to run an equation like:
reg income ageofwife ageofhusband schoolingofwife schoolingofhusband
I know something is wrong with my definition above because I get 0
observation when I run the regression.
Thank you,
Nirina
On 3/5/08, Nick Cox <[email protected]> wrote:
> This refers to a package written by Jeroen Weesie published in STB-43 in
> 1998.
> Jeroen is I believe not a member of this list. If you receive no
> specific answer
> to this you would be well advised to contact him directly.
>
> Nick
> [email protected]
>
> Nirina F
>
> I tried to use hhset to separate out wife and husband and so I used
> -hhset-.
> I used hrespnr as the hhid (named case) but it does not work.
> Could anyone explain what hrespnr is supposed to be? or what is the
> best way to create wife and husband?
>
> *
> * 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/
>
*
* 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/