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

st: Re: durbina2

From   Kit Baum <>
Subject   st: Re: durbina2
Date   Wed, 28 Sep 2005 09:21:37 -0400

All of the routines in my 'panelauto' package require that you provide a single panel. Thus

webuse grunfeld
reg invest L.invest time

reports an error, since more than one panel (company) enters the regression. But if you reg ... if company==1 you may then use durbina2. Official Stata 7's durbina will not work in that context. But Durbin's alternative test (like the D-W) is not made to test for AR(1) in multiple time series, so your regression below cannot be followed by a Durbin test of any flavor.

Kit Baum, Boston College Economics

On Sep 28, 2005, at 2:33 AM, statalist-digest wrote:

xi: regress lnpoll predict flux pop_dens pop_dens2 year i.index, where
index is my panel variable.

Then, I type


and the error message I get is:

if not allowed
*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index