Page 1 of 1
RESIDUALS IN PANEL FMOLS
Posted: Mon Dec 14, 2009 3:48 am
by ana70
Dear Rats Users,
In order to test causality between three series in a panel of several countries and 30 years, after testing cointegration (with pancoin.src) and using panelfm.src to estimate by FMOLS a existing long-run relationship, I have to construct a panel vector error correction model for which the error correction term is needed. Panelfm.src gives the estimated coefficients of the slopes and the corresponding t-statistics, however, I do not know how to get the estimated coefficient for the intercept and what is more important, I cannot recover the residuals of the estimation to have the error correction term.
Is there any way to recover those residuals?
Another question: How can I implement System GMM (Blundell and Bond, 1998) in a panel VAR or VECM?
Thanks a lot.
Re: RESIDUALS IN PANEL FMOLS
Posted: Thu Mar 07, 2013 10:03 pm
by Jim Stodder
I can answer his first question, but still wonder about the second.
As for the intercepts, they can be seen with the command
display %%ibetas
But I also wonder how to recover the residuals. When I run the TABLE instruction after doing @panelfm, it shows me a "U" series with a zero mean and the right number of observations. But I haven't been able to figure out how to recover it as a panel data object. Thanks, JS
Re: RESIDUALS IN PANEL FMOLS
Posted: Fri Mar 08, 2013 6:45 am
by TomDoan
The most current version of
@PANELFM computes %RESIDS as the residuals.
Re: RESIDUALS IN PANEL FMOLS
Posted: Wed Feb 24, 2016 7:11 am
by mamacle
Hi Tom,
I want to estimate an ECM. Firstly, since my variables are I(1) I did estimate the cointegration relationship using DOLS. After that, I am trying to save the residuals from this regression in order to construct an ECM. I compute them using %RESIDS -as you suggested- but I cannot see them in the series window, and therefore I cannot use them to compute the ECM. I might be doing something wrong but unfortunately I cannot see where is the problem. Please see below the codes I am using:
@paneldols(dlags=5,lags=5,bvec=||1.0||,print=full,average=simple,$
ibetas=dolsbeta,itstats=dolststat)
# logfund logindex
COMPUTE Residuals=%RESIDS
Thank you very much in advance!
C.
Re: RESIDUALS IN PANEL FMOLS
Posted: Wed Feb 24, 2016 12:38 pm
by TomDoan
%RESIDS isn't included in many of the series selectors because it can change easily (and perhaps unexpectedly), and so isn't a good choice for inclusion directly in a regression. To make a copy, use
SET residuals = %resids
not COMPUTE.
Re: RESIDUALS IN PANEL FMOLS
Posted: Wed Feb 24, 2016 5:08 pm
by mamacle
Hi Tom,
Thank you for your help. The problem is that I need the residuals from either FMOLS or DOLS in order to compute an ECM for each individual in my dataset. The ECM will be computed with the differences of the variables from the long-run regression but I need to include the lagged residuals from FMOLS or DOLS. I wonder if you see a different way to do the ECM.
Thank you in advance.
C
Re: RESIDUALS IN PANEL FMOLS
Posted: Wed Feb 24, 2016 5:14 pm
by TomDoan
I'm not sure I understand what you're asking. %RESIDS is the series of residuals from the group mean estimate of the cointegrating vector. Just copy it over to a new series using SET (not COMPUTE the way you were trying) and use the series that you create.
Re: RESIDUALS IN PANEL FMOLS
Posted: Thu Feb 25, 2016 11:17 am
by mamacle
Hi Tom,
It works now! Thank you very much for your help.
C.