Page 1 of 1
help for the FMOLS prg
Posted: Thu Jul 02, 2009 4:09 am
by theologos
Hi,
I have downloaded it the Fully Modified OLS prg file, from the program repository and I do not know how I should modify the call command in order to get results. As an example I have used a dependent variable along with three independent variables. I would be grateful if you could provide me with any help!
Thank you in advance.
Re: help for the FMOLS prg
Posted: Thu Jul 02, 2009 1:05 pm
by EViews Glenn
From the comments in the program...(with one minor correction)
' smpl @all
' scalar bw = 7
' group g x1 x2 x3
' vector b
' vector ses
' sym cov
' call fmols(y, g, bw, b, ses, cov)
' vector tstats = @ediv(b, ses)
The first two lines set the sample and the bandwidth. The group specification defines the set of nonstationary regressors. Declare a vector for coefficients, vector for the ses, and a sym for the covariance matrix. Call FMOLS using the dependent, the group, the bandwidth scale, the vectors for output and the sym for output.
Re: help for the FMOLS prg
Posted: Fri Jul 03, 2009 2:57 am
by theologos
Hello,
Thank you for your immediate response! I have incorporated the minor revision you have suggested and it works! Ι was careless regarding the substitution of the vector named tstats with ses! I should have noticed it.
Thank you again!
regards
help for the FMOLS prg
Posted: Thu Sep 03, 2009 1:15 pm
by Anne
Hello,
I have used in Eviews 6 Pedroni's panel cointegration test to check whether there is a long-run relationship between a sustainable development index and 4 explanatory variables for 10 countries between 1995-2006 (annual data). According to the output provided by the test, I found that the variables are cointegrated with the option intercept and trend. As a result, I've tried to perform a FMOLS regression using the prg file posted by QMS Glenn on this forum.
Trying to understand the code, I met some difficulties. Therefore, I kindly ask you to tell me why the scalar bw is set at 7 (would this value be appropriate for my sample?)
e.g. scalar bw = 7
Moreover, I would like to know whether the t-stat provided by the program follow a standard normal distribution.
Thanks a lot in advance!
Anne
Re: help for the FMOLS prg
Posted: Tue Sep 08, 2009 9:18 am
by EViews Glenn
The 7 is an arbitrarily chosen bandwidth that may not be appropriate for your data. The choice of bandwidth is something you will have to decide for yourself.
The distribution of the coefficients is non-standard, but the t-statistics may be used for inference in the usual fashion.
Re: help for the FMOLS prg
Posted: Wed Jun 08, 2011 1:32 am
by avaona
I am using the program FMOLS prg downloaded from eviews repository with e-views 6. I was wondering whether the program already includes individual specific intercepts and trends or whether one has to insert them as variables in the group g. Thank you for your help. Andrea.
Re: help for the FMOLS prg
Posted: Wed Jun 08, 2011 12:17 pm
by EViews Glenn
It doesn't handle any panel structures. Note that you will have problems with lags in the long-run variance calculation if you try to run this with panel data...
Re: help for the FMOLS prg
Posted: Thu Jun 30, 2011 4:49 am
by avaona
Hi,
thank you for your reply.
I understand it does not per se handle any panel structure. However, Pedroni (2001), Purchasing power parity tests in cointegrated panels, Review of Economics and Statistics, 83, 727-731, proposes a mean group FMOLS. Point estimates are easy to obtain as they are just the mean of the point estimates of each cross-section (see the first column of p. 729). My problem is with the t-statistics. In the fourth equation of p. 729, there is written that the relevant t-statistics are weighted averages of the individual specific ones. Regarding these, they are the product of two terms. The first one is the difference between the individual FMOLS point estimates and the value of the coefficients under the null. The second one is the square root of the product of the sum of the squared deviations of the relevant regressor from its cross-sectional mean times an omega term. My problem is where can I get the omega term from the file FMOLS.prg?
Hope I made myself clear. Thank you for your help.
Best,
Andrea.
Re: help for the FMOLS prg
Posted: Thu Jun 30, 2011 3:31 pm
by EViews Glenn
I believe it's in the first element of the Omega matrix in the subroutine: omega(1,1). Unfortunately, you don't have access to it as the subroutine is currently written. You'll have to modify the definition of the subroutine so that the value is returned when you call the routine.