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
Wed, 3 Nov 2010 16:12:52 -0400
Thanks Maarten. It does help. However, I have a follow-up question.
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
Kindly advice if the syntax are correct and are they the same?
Thanks very much!
Shikha
On Wed, Nov 3, 2010 at 3:41 PM, Maarten buis <[email protected]> wrote:
> --- On Wed, 3/11/10, Shikha Sinha wrote:
>> I want run an Ordinary Least Square (OLS) model with
>> household fixed effect. The data is a child-level
>> observation nested in the household. There are
>> 50,000 unique households. I think the maximum number of
>> variables permitted in Stata is 34000.
>
> See -help xtreg-
>
> 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/