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: xtpcse regression


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: xtpcse regression
Date   Sun, 18 Jul 2010 12:04:56 +0200

<> 

You can check whether there is still a time period which has information on
all panels members like this:


*************
webuse grunfeld, clear
set seed 34205
drop if runiform()<.2

//still a year there with 10 obs?
table year company, contents(freq) col
//so -xtpcse- still works
xtpcse invest mvalue kstock

drop if inlist(year,1942,1949,1951) & c==3
//still a year there with 10 obs?
table year company, contents(freq) col

//answer: "no"
cap xtpcse invest mvalue kstock
di in r "Error code: " _rc
//so -xtpcse- fails
//but works with the -pairwise- option:
xtpcse invest mvalue kstock, pairwise
*************



HTH
Martin

-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Bin Dong
Gesendet: Sonntag, 18. Juli 2010 11:27
An: [email protected]
Betreff: st: xtpcse regression

Dear all,

Stata tell me "no common time periods between panels" when I run
xtpcse with my firm-year panel. Actually I have three kinds of firms
in my data set. For the first kind, I have 2003-2008 data, For the
second kind, I have 2003-2007 data. And for the third kind of firms, I
have 2004-2008 data. I am wondering why Stata thinks there are no
common time periods between panels even if I cut all 2003 and 2008
data. Is there anyone who has an idea about it? Thank you very much in
advance.

Cheers,
Bin
*
*   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