Statalist


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

Re: st: how to get hold of the observations used in xtreg, fe


From   "Austin Nichols" <[email protected]>
To   [email protected]
Subject   Re: st: how to get hold of the observations used in xtreg, fe
Date   Thu, 24 Jan 2008 14:02:30 -0500

Jessica �lschl�ger :
I doubt this claim.  Can you show the output of e.g.

loc x "ln_openquota_oecd ln_govbaladj_oecd ln_unemployment
ln_lgovinvquota outputgap l.totalpop rintratelt syr termstrade fdiin
t1100gdp t1200gdp t2000gdp t3000gdp t5000gdp"

xtreg gwgdpvdpc `x' if year >=1990, fe
count if e(sample)
su `x' if e(sample)

instead of -list- output?

On Jan 24, 2008 1:49 PM, Jessica �lschl�ger
<[email protected]> wrote:
> Dear Statalisters,
>
> I'm running a fixed effects regression (xtreg, fe) using an unbalanced panel
> dataset.

xtreg gwgdpvdpc  ln_openquota_oecd ln_govbaladj_oecd  ln_unemployment
> ln_lgovinvquota  outputgap l.totalpop   rintratelt syr   termstrade  fdiin
> t1100gdp t1200gdp t2000gdp t3000gdp t5000gdp  if year >=1990, fe)

Stata gives me the following output:
>
> Fixed-effects (within) regression             Number of obs      =        53
> Group variable: coid                          Number of groups   =        14

> I would like to get hold of the 53 observations stata uses for the
> regression.
> But when I type
> list if e(sample)
> Stata gives me back a lot more observations than just 53 (see below).
> (shortened)

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index