Time Series Analysis in Stata - PART 2
Time Series Analysis in Stata - PART 2
Part 2
Dr John Musantu
When your data
violates the
above
assumption AR &
MA addresses
that
Remember
, white
noise is
zero mean
and
constant
variance
The second
figure has been
obtained by
getting the
residual
(difference
between actual
and fitted).
Basically, the
difference
between the
points on the
red line and the
black curve. The
new curve has
LESS TREND
‘d’ are the differences
on the dependent
variable
Tailing
off
Tailing
off cuts off
Tailing
off
Tailing
off
Note: that in tail off they come
down so quickly but in slow
decay they take time. This is an
example of non-stationary data.
You can difference this variable
Ordinary lest squares methods were used, and the vector error
correction modelling (VECM) model was used to analyse the data.
Literature Was noted that there was a significant bearing on economic growth by
Review – resources that were endowed in both countries, Pakistan and India
(Muhammad: 2018)
Empirical A limitation or research gap from this study was that only two variables
Review were considered in establishing the relationship between natural
resource rents and economic growth, the two variables between natural
resource rents and GDP per capita.
A study was undertaken by Davis and Tilton (2005). The study was
qualitative and was a desk review of theories that related to mining. In
this study, mineral abundance was considered in relation to growth of
economies across countries. Essentially, this was what the research
looked to ascertain. In ensuring this, a cross sectional study was
implored…….
Consider at least a maximum of 2 theoretical frameworks
>>> Consult supervisor!!!
Here, we fail to
reject the null
hypothesis, hence, This is the value you
our variable is not should consider in
stationary at level your decision
Output – Not stationary at level
❑ Because the variable is not stationary at level, we
need to perform the Dickey-fuller test at the
difference
❖ We’ll stop at the point when the variable
becomes stationary
Output – Not stationary at level
❑ Decision:
❖ You’ll need to use the trace figure to
ascertain whether you reject all fail to reject.
❖ If the trace statistic is above the critical
values, you reject null, hence, cointegration
exists
❖ You see that even using the max statistic we
make the same conclusion
❖ Note: each line has its own values, hence,
you making this decision for each line
❑ If the outcome in the previous in test tell us there is at least
some cointegration, we’ll move to conduct the regression
called the Vector Autoregression model
❑ Command: var GDPPerCapitaAnnual MineralRentsofGDP
ForeignDirectInvestmentneti Schoolenrollmentprimarygr
LifeexpectancyatBirthtotal Industryincludingconstruction
Realinterestrate, lags(1/1)
❑ Note: (1/1) because our appropriate lag was 1. Means, the
table will have one lag or difference
❑ You’ll check which relationships are significant in the table in
the next slide
Granger Causality Test
❑ To establish the direction of the influence, a granger causality test is
perfomed.
❑ To do this, we will need to perform the Vector Autoregression below:
❑ Step 1:
❑ Command: var GDPPerCapitaAnnual MineralRentsofGDP
ForeignDirectInvestmentneti Schoolenrollmentprimarygr
LifeexpectancyatBirthtotal Industryincludingconstruction
Realinterestrate, lags(1/1)
❑ Step 2:
❑ Command: vargranger
Post estimation Procedure
❑ You will also need to consider post-estimation analysis
❖ Wald Test – investigate short-run associations
❖ Autocorrelation Test (Breusch Godfrey) – joint test for
autocorrelation which allows for several lags to be employed in the
measure for the error’s autocorrelation
❖ Normality Test (Jarque- Bera test) – investigate whether data flows a
normal distribution or not
❖ Heteroskedasticity Test (Breusch-Pagan-Godfrey test) - Error term's
variance should be investigated to check if it remained consistent