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]

Re: st: Household-fixed effect model with 50,000 hh


From   Shikha Sinha <[email protected]>
To   [email protected]
Subject   Re: st: Household-fixed effect model with 50,000 hh
Date   Thu, 4 Nov 2010 14:30:24 -0400

Thanks Maarten!

Shikha

On Thu, Nov 4, 2010 at 3:59 AM, Maarten buis <[email protected]> wrote:
> --- On Wed, 3/11/10, Shikha Sinha wrote:
>> Let child ID is cid and household id is hhid and data are
>> child-level observation within the households, and I want
>> to estimate a household-fixed effect model, then What is
>> the difference among these three estimation or are they same?
>>
>> 1. xi: reg y x1 x2 i.hhid
>>
>> 2. sort cid hhid
>> tsset cid hhid
>> xtreg y x1 x2, fe
>>
>> 3. xi:xtreg y x1 x2 i.hhid, fe
>
> 1. is in principle ok, but you said earlier that your data
> contains too many households for Stata to be able to estimate
> that model.
>
> 2. is wrong for your purpose, you want to use -xtset- not
> -tsset-.
>
> 3. is wrong also, the whole point of -xtreg- is that that
> way you can avoid making those dummies.
>
>
> Instead you should use:
>
> xtset hhid
> xtreg y x1 x2, fe
>
> For more information read -help xtreg- and -help xtset-.
>
> Hope this helps,
> Maarten
>
> --------------------------
> Maarten L. Buis
> Institut fuer Soziologie
> Universitaet Tuebingen
> Wilhelmstrasse 36
> 72074 Tuebingen
> Germany
>
> http://www.maartenbuis.nl
> --------------------------
>
>
>
>
>
> *
> *   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index