Statalist


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

Re: st: RE: -hhset- hrespnr?


From   "Nirina F" <fstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: -hhset- hrespnr?
Date   Fri, 14 Mar 2008 07:15:53 -0400

Yes, I agree because I only have one household data.
And that is why I tried to use -hhset- but it did not work but I will
try again and let you know.
This is what I get which gives me zero observation when I run reg.
list   hhid linenum  ageofwife  ageofhusband
               +----------------------------------+
               hhid   linenum   ageofwife   ageofhusband
               ----------------------------------
       1.      f2                 1       .                52
       2.      f2                 2      38                .
       3.      f2                 3       .                  .
       4.      f2                 4       .                   .
       5.      f2                 5       .                   .
               ----------------------------------
       7.      f41               1       .                33
       8.      f41               2      22                 .
       9.      f41               3       .                   .
       10.    f41               4       .                   .

What I would like to get something like:

       +----------------------------------+
               hhid   linenum   ageofwife   ageofhusband
               ----------------------------------
       1.      f2                 1       38              52
       2.      f41               1       22                33

but I don't know how to do it.
Thanks,
Nirina


On 3/7/08, Richard J Stoll <stoll@rice.edu> wrote:
> Everyone is a husband or a wife right?  So ageofwife is missing for all
> husbands,  therefore all those cases are dropped.  Ageofhusband is
> missing for all wives, so you lose the rest of the cases.....
>
> On Fri, 7 Mar 2008, Nirina F wrote:
>
> > Dear Nick,
> >
> > Thank you for taking the time to respond.  I understand what you mean but
> >
> > actually, what I meant was that  if I run
> >
> > "reg income ageofwife ageofhusband schoolingofwife schoolingofhusband "
> >
> > it gives me 0 observation because of how the explanatory variables
> > were generated:
> >
> >  ageofwife=age if wife==1
> > ageofhusband=age if husband==1
> >
> > then used together ends up in intersection and here comes my problem.
> >
> > Nirina
> >
>
> ------------------------------------------------------------------------
> Richard J. Stoll * Professor of Political Science * Rice University
> Dept. Political Science MS 24 * P.O. Box 1892 * Houston TX 77251-1892
> E-mail: stoll@rice.edu * Tel: 713-348-3362 * FAX: 713-348-5273
>
> *
> *   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/



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