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]

st: AW: a question on sample after xtabond command


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: a question on sample after xtabond command
Date   Wed, 23 Jun 2010 14:37:47 +0200

<> 

Looks like the number of groups and the number of obs reported add up to the
count of -e(sample)-:


*************
webuse abdata, clear
xtdes
bys id: keep if _N==7
xtabond n l(0/1).w l(0/2).(k ys) yr1980-yr1984, lags(2)
cou if e(sample)
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Le Manh Duc
Gesendet: Mittwoch, 23. Juni 2010 14:28
An: [email protected]
Betreff: st: a question on sample after xtabond command

Hi all,

I ran a dynamic panel data model using xtabond command on a unbalanced
panel. I got a result with 7395 obs of 1568 groups.

Now I want to produce a correlation table of the variable in my model
using if e(sample). However, I get a correlation table with 9315 obs.
Why the number of obs from e(sample) is different from the one I got
before (7395 obs) ?

The command as below:

*****

xtabond tecdiv L.firmsize L.rdint L.adsint L.capint L.leverage
L.current L.new_q north_america dyear1990-dyear2000 if year>=1989 &
year<=2000, endogenous(Lpdiv, lag(1,.)) endogenous(Lpdiv_sq, lag(1,.))
twostep vce(robust)

corr tecdiv L.firmsize L.rdint L.adsint L.capint L.leverage L.current
L.new_q north_america dyear1990-dyear2000 Lpdiv Lpdiv_sq if e(sample)

*****

Could you give me some suggestion?

Regards,
Duc
*
*   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