|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
AW: st: how to get hold of the observations used in xtreg, fe
From |
Jessica �lschl�ger <[email protected]> |
To |
<[email protected]> |
Subject |
AW: st: how to get hold of the observations used in xtreg, fe |
Date |
Fri, 25 Jan 2008 10:50:59 +0100 |
This works very well, I get:
count if e(sample)
53
.
. su `x' if e(sample)
Variable | Obs Mean Std. Dev. Min Max
-------------+--------------------------------------------------------
ln_openquo~d | 53 -.4636664 .5237224 -1.864518 .4685479
ln_govbala~d | 53 .1099323 .8970121 -2.465104 1.860352
ln_unemplo~t | 53 -2.820476 .5654466 -4.105608 -1.789702
ln_lgovinv~a | 53 -3.63861 .3367478 -4.362502 -2.728667
outputgap | 53 -.0026975 .0266407 -.08008 .04783
-------------+--------------------------------------------------------
totalpop |
L1. | 53 30484.84 64624.11 268.9 272945
rintratelt | 53 .0393851 .0268024 -.0852657 .0980728
syr | 53 3.547566 .7967051 2.258 5.048
termstrade | 53 1.006547 .0647307 .919 1.392
fdiin | 53 29101.57 64380.1 -247 321274
-------------+--------------------------------------------------------
t1100gdp | 53 13.70545 3.653837 7.99388 25.85768
t1200gdp | 53 3.501216 1.436808 .9036408 8.997226
t2000gdp | 53 6.679746 5.104838 0 14.67767
t3000gdp | 53 .4656691 .8017646 0 3.75145
t5000gdp | 53 11.66961 3.432847 3.984247 17.90243
But why doesn't it work the other way?
It actually doesn't work for me - I've tried it several times.
Is there a way, to list the single observations with your method?
Regards
Jessica
-----Urspr�ngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Austin Nichols
Gesendet: Donnerstag, 24. Januar 2008 20:03
An: [email protected]
Betreff: Re: st: how to get hold of the observations used in xtreg, fe
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/
*
* 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/