How To Apply Panel ARDL Using EVIEWS
How To Apply Panel ARDL Using EVIEWS
you can perform this test easily with the help of few steps following are eviews
steps while in following section you will find theory about panel ardl and how to
run panel ARDL using stata 14,Further panel ARDL have two estimators ,means
we can run ARDL with two methods but EVIEWS only one estimator known as
PMG while stata haive both PMG and MG
Go to quick and select estimate equation
Select from drop down button/combo box or from method tab below equation
specification PMG/ARDL
Now in equation specification tab write your equation like co2 fdi gdp here you
can see first i write dependent variable which is co2 and after this all
independent variable and don't include "C" means constant
Now select fixed or automatic lags its all up to but if you choose automatic lags
you can assign different lag to dependent and independent variables ,like its upto you, mean i can assign maximum 7 lags to dependent variable, while 4 to
independent variable, eviews automatically choose optimal lags even you assign
7 ,eviews can select 2 as optimal,but if choose fixed lags option then assign
same maximum lags both to dependent and independent variable.
When you will OK results will be produce
Now if you want to see individual effect for different companies or country, go to
view of you resulted window and click on view and select cross option and OK.
Theory of panel ARDL
Preconditions regarding sationarity of panel ardl
We can run ardl model in three cases
When all variables are stationary at level
When all variables are stationary at first difference
Or when variables are stationary at level and first difference means in mixture
nature of sationarity
Suppose I have 6 variables suppose 3 stationary at level and 3 at first difference
so I can go now for ARDL model
Remember we cant run ardl when we have second difference variable.
PANEL ARDL
Pooled Mean Group (PMG) model
The main characteristic of PMG is that it allows short-run coefficients, including
the intercepts, the speed of adjustment to the long-run equilibrium values, and
error variances to be heterogeneous country by country, while the long-run slope
coefficients are restricted to be homogeneous across countries. This is
particularly useful when there are reasons to expect that the long-run equilibrium
relationship between the variables is similar across countries or, at least, a sub-
2) now create a pool or simple stata give codes to each cross section or entity
like if you have different countries data or companies the u have to give specific
code all countries or companies, further if you have assign code by yourself
suppose u did not write company name like nestles but you indicated nestle
with 111 now u see you have already given the code but if you have simple right
the name of company then u need to give also code
egen country1=group( country) (note: if you have countries data)
egen Company1=group( Company) (note: if you have companies data)
3) 3.now set time which is most important
4) xtset Company1 year, yearly (note: hear I have yearly data and company1 is
new variable which I genrate in step 2)
here we shall Run MG (average):
5) First of all install this package to run PANEL ARDL ssc install xtpmg, replace
6) Suppose you think you have installed this package but still you are not sure
then type in command bar type xtpmg
7) If u see message of no found then install otherwise you have already install it.
8) here we shall Run PMG (average):
xtpmg d.CO2 d.energy d.gdp , lr(l.CO2 energy gdp ) ec(ECT) replace pmg
10) here we shall Run PMG (individual):
(The main characteristic of PMG is that it allows short-run coefficients, including
the intercepts, the speed of adjustment to the long-run equilibrium values, and
error variances to be heterogeneous country by country, while the long-run slope
coefficients are restricted to be homogeneous across countries.)
xtpmg d.CO2 d.energy d.gdp , lr(l.CO2 energy gdp ) ec(ECT) replace full pmg
here we shall Run MG (average):
xtpmg d.CO2 d.energy d.gdp , lr(l.CO2 energy gdp ) ec(ECT) replace mg
(It allows for all coefficients to vary and be heterogeneous in the long-run and
short-run. However, the necessary condition for the consistency and validity of
this approach is to have a sufficiently large time-series dimension of the data.)
here we shall Run MG (Individual):
xtpmg d.CO2 d.energy d.gdp , lr(l.CO2 energy gdp ) ec(ECT) replace full mg
to select between PMG AND MG run housman test following is command
hausman mg pmg, sigmamore
Now if our probability value comes more than 5% we run PMG
If our probability value comes less than 5% we run MG
Running DFE:
xtpmg d.CO2 d.energy d.gdp , lr(l.CO2 energy gdp ) ec(ECT) replace dfe
* Running Hausman test to choose between MG and DFE:
hausman mg DFE, sigmamore Note:
Suppose you want to run all these tests on your data, so simple just import your
data into stata and copy command from here into stata command bar and
replace my variables name with yours.
Good luck.