Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: Pesaran test for cross section dependence in panels [was: Help inPrograming]


From   Ricardo Gon�alves Silva <[email protected]>
To   <[email protected]>
Subject   st: Re: Pesaran test for cross section dependence in panels [was: Help inPrograming]
Date   Sun, 6 Mar 2005 13:45:05 -0300

Thank you Scott,
You are right. I however already solved the problem.

Thanks

Rick
----- Original Message ----- From: "Scott Merryman" <[email protected]>
To: <[email protected]>
Sent: Saturday, March 05, 2005 12:23 PM
Subject: st: Pesaran test for cross section dependence in panels [was: Help inPrograming]



The error statement is telling you need to change the line "estimates
hold..." to "_estimates hold..."

But there is a much more fundamental problem. -bpagen- is the Breusch-Pagan
(1979) Lagrange multiplier test for heteroskedasticity, not the
Breusch-Pagan (1980) LM test for cross-sectional correlation in fixed
effects model

You should take a look at -xttest2-.

Hope this helps,
Scott


Breusch, T. & Pagan, A. (1979), "A simple test of heteroskedasticity
and random coefficient variation", Econometrica 47.

Breusch T. & Pagan, A. (1980), "The LM test and its Applications to Model
Specification in Econometrics", Review of Economic Studies, 47.



-----Original Message-----
From: [email protected] [mailto:owner-
[email protected]] On Behalf Of Ricardo Gon�alves Silva
Sent: Friday, March 04, 2005 1:08 PM
To: Stata
Subject: st: Help in Programing

Dear Users,

The folowing code is to implement a test for comtemporaneous correlation
in
panel data, after xtreg ..., fe.
The statistic to be computed is: CD=sqrt(T/(N*(N-1))*pwc, where
T is the number of periods, N the panel dimension and pwc is the estimated
pair-wise residual correlation.
However, when I run it, I receive the error

. cdpesaran yr
the subcommand hold has been moved from estimates to _estimates
r(198);


Any hint?

* cdpesaran V1.0 cloned from bpagan.ado %Ricardo Gon�alves Silva



*
*   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/



--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.6.1 - Release Date: 4/3/2005




--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.6.1 - Release Date: 4/3/2005

*
*   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