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, is already up and running.

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

re: Re: st: RE: Panel data: large number of linear time trends

From   Christopher Baum <>
To   "" <>
Subject   re: Re: st: RE: Panel data: large number of linear time trends
Date   Fri, 24 Feb 2012 15:47:30 -0500

Austin said

William Gui Woolston--
You have to detrend the outcome and each regressor, not just the outcome.

Quite so. To break the estimation into a detrending step and a panel regression, you must 'partial off' the effects of trend from both the response variable and the other regressors, as his code does.  Another approach to handle this would be to use -mvreg- to project all the variables in the model on the time trend so that the -myregress- routine could be called just once with a varlist, perhaps automatically producing the detrended series as dtr_y, dtr_x1, dtr_x2, etc.


Kit Baum   |   Boston College Economics & DIW Berlin   |
                             An Introduction to Stata Programming  |
  An Introduction to Modern Econometrics Using Stata  |

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index