Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: xtpcse regression


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
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: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Bin Dong
Gesendet: Sonntag, 18. Juli 2010 11:27
An: statalist@hsphsun2.harvard.edu
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index