ECS4863 - Solutions To Activity 1.2
ECS4863 - Solutions To Activity 1.2
The aim of this activity is to estimate a government revenue function for South Africa. The
theoretical specification of government revenue (REV) may be specified as:
Where:
1. Generate the necessary real values of the data and log all variables.
Use the genr (generate) function in EViews and create the following variables:
RREV=rev/cpi*100
RYD=nyd/CPI*100
rm3=m3/cpi*100
infl=(cpi/cpi(-1)-1)*100
rprime=prime-infl
Open Rubric
2. Test the variables for their order of integration (remember that we already tested M3
and YD in activity 1.1)
Series Model ADF lags ADF
ττ τ µ τ
Intercept ( τ µ ) 0 0.257
None ( τ ) 0 2.881
Intercept ( τ µ ) 0 -3.675**
None ( τ ) 0 -2.660**
Intercept ( τ µ ) 0 -0.617
None ( τ ) 0 -0.613
Intercept ( τ µ ) 0 -4.135***
None ( τ ) 0 -4.195***
The results of the unit root test indicate that both LRREV and LRPRIME becomes stationary
after differencing once. This indicates that they are I(1) variables. You may assume (as
proven in activity 1.1) that RM3 and RYD are also both I(1).
[Interesting to note: if you re-do the tests for RM3 and RYD you will see that there are
differences in values between them and the ones you did for the same variables in Activity
1.1. The general conclusion (i.e. whether the variables are I(0), I(1), etc.) should however
remain the same. The reason for the difference is of course the different time periods (years)
and number of observations used. Choosing which time period, and hence which number of
observations to work with, are often difficult decisions the econometrician needs to take.
Also watch out for structural breaks in the data.]
3. Estimate the following potential long-run cointegration equation, and completed the
table below:
Select the variables, always starting with your dependent variable (in this
case LRREV) and then the rest.
[As long as Ctrl is pressed you can select/deselect variables as you like. They
will be highlighted in blue or not as you select/de-select them.]
Let go of Ctrl.
Making sure that your cursor is in any of the blue blocks, right-click and
select “Open/As Equation” …
Variable Coefficient
LRYD 0.34
LRM3 0.51
C 0.75
• Economic theory rules (especially when you are dealing with small
sample sizes). What we want is for the coefficients to have the correct
signs and magnitudes. We do “look” at the t-stats for safety (i.e. to
make sure there is at least some statistical significance), however,
technically statistical inference is invalid due to the times series (likely)
being non-stationary.
• Make sure to estimate the equation in levels (do not difference any of
the variables at this stage. Why?).
• No lags.
• Use dummy variables sparingly (only if you have very good reason to
suspect a structural break in the data).
• With or without a constant.
• The other statistics (e.g. R², F, t-stats) are invalid, so do not report or
evaluate them at this stage.
• NB: Look for the minimum number of explanatory variables that result
in stationary residuals (this will be tested in the next step / Question
4) and that is consistent with economic theory.
Using the above guidelines to evaluate our (potential) cointegration equation, it is
evident that both LRYD and LRM3 are positively related to LRREV (i.e. they both
have a positive sign), which is correct according to our a priori (economic theory)
expectations. The magnitude of the coefficients also seems relevant – in this
case they are both between 0 and 1, and if LRYD increases by 1% we expect
LRREV to increase by 0.34%, while if LRM3 increase by 1% we expect LRREV
to increase by 0.51%.
(Determining the magnitude is much more difficult as various samples and time
periods could lead to different magnitudes. This is where the study of economic
theory or academic papers prior to doing econometric modelling becomes very
important, so that the researcher has a good grasp of the theory and also can be
able to set rational expectations.)
This is also a good time to save your (potential) cointegrating equation. You do
this by selecting “Name”, and then typing any name you would like to give the
long-run equation. Suggestions could be eq01 (default), eq_lr (for long run),
eq_coint (for cointegration), etc. Just remember to either type one word, or the
underscore (_) sign to connect terms. Click “OK”. You will see a “new variable”
in the workfile, with the same name as the one you gave your equation. Also,
there will be an equal to / = sign next to the variables, indicating that it is an
equation you saved. You can now close the equation, and every time you select
(double-click) the new variable, EViews will open up the equation automatically
(thus saving you time not to have to reselect each time).
Also make sure to save you work file itself regularly. To do this, you go to the top-
left corner of EViews interface, and then select “File/Save as” … (similar as how
you would save for example any MS Word or Excel file). You will see that the file
is saved as a .wf1 file, indicating that it is an EViews work file.
(This can be done in two ways, i.e. either to make a repressor group or to
generate the residual and then test for unit root. We preferred that you use the
latter, i.e. generate the residual and then test for unit root. The reason is that if
the residuals test stationary, you will use the new series in the rest of the
modelling, in which case the series has already been generated. This will
likely save some time and possible confusion. Students who would also like to
use the repressor group method can contact the lecturers for guidance.)
Once the researcher is satisfied that the signs and magnitudes of the coefficients
are consistent with economic theory, he/she can proceed to formally test if the
residuals of the (potential) cointegrating equation are indeed stationary.
The hypothesis of the cointegration test is as follows:
H0: No cointegration.
Open the (potential) cointegration equation you saved in the previous step.
“A Make Residuals” pop-up will appear. For residual type select “Ordinary”
(default option). Also, this is a good time to name your residual series. The
default is resid01, but you should type in any new name you want for the new
series; suggestions: res_rev (residual for the revenue equation) or resid_rev, etc.
If you do not type in a new name, EViews will generate a new variable called
resid01.
You can also change the name later by selecting the resid01 variable and
renaming it, by repeating the steps by clicking on “Name”/etc … . Keep in mind
that this residual series will feature very prominently in the rest of the model
process, so just make sure that you select a name that you will be able to identify
easily later in the process (all the equations can become confusing!)
Click “OK”.
Select:
Leave the rest as default (i.e. Augmented Dickey-Fuller test and Automatic Lag
length selection, using the Schwartz Info Criterion).
Click “Ok”..
Model Lags τ p-value
The results indicate that the variable is statistically significant (at 1% level, i.e.
three stars, which means that we can reject the null hypothesis (of no
cointegration).
Both LRYD and LRM3 are positively related to LRREV (i.e. they both have a
positive sign), which is correct according to our a priori (economic theory)
expectations. The magnitude of the coefficients also seems relevant – in this
case they are both between 0 and1, and if LRYD increases by 1% we expect
LRREV to increase by 0.34%, while if LRM3 increase by 1% we expect LRREV
to increase by 0.51%.