I can calculate (univariate and bivariate) IRF's manually; and verify using IMPULSE and (bivariate) @VARIRF. I can generate results as in enders4 AETS CH5 Section 7 Figure 5.7.
I am having problems with understanding FEVD formuale and I cannot generate the same results using ERRORS (to aid my understanding) by-hand.
Here's a 2-variable example (based on e1.dat):
Code: Select all
open data e1.dat
calendar(q) 1960
data(format=prn,org=columns,skips=6) 1960:01 1982:04 invest income cons
*
set dinc = log(income/income{1})
set dcons = log(cons/cons{1})
set dinv = log(invest/invest{1})
*
system(model=varmodel)
variables dinv dcons
lags 1
det constant
end(system)
estimate(sigma,residuals=resids,noftests) * 1978:4
disp 'sigma' %sigma
comp chol = %decomp(%sigma)
disp 'chol:' chol
*===============================
errors(model=varmodel,steps=10,print)
With results:
Code: Select all
VAR/System - Estimation by Least Squares
Quarterly Data From 1960:03 To 1978:04
Usable Observations 74
Dependent Variable DINV
Mean of Dependent Variable 0.0184283044
Std Error of Dependent Variable 0.0470362338
Standard Error of Estimate 0.0458457325
Sum of Squared Residuals 0.1492300146
Durbin-Watson Statistic 2.1079
Variable Coeff Std Error T-Stat Signif
************************************************************************************
1. DINV{1} -0.252102535 0.118641101 -2.12492 0.03707530
2. DCONS{1} 0.915023222 0.539901911 1.69480 0.09449637
3. Constant 0.004577133 0.011724359 0.39040 0.69741321
Dependent Variable DCONS
Mean of Dependent Variable 0.0199455998
Std Error of Dependent Variable 0.0104517085
Standard Error of Estimate 0.0105593721
Sum of Squared Residuals 0.0079165240
Durbin-Watson Statistic 1.8937
Variable Coeff Std Error T-Stat Signif
************************************************************************************
1. DINV{1} -0.006400833 0.027325892 -0.23424 0.81547236
2. DCONS{1} -0.073329741 0.124352363 -0.58969 0.55726834
3. Constant 0.021530823 0.002700401 7.97319 0.00000000
Covariance\Correlation Matrix of Residuals
DINV DCONS
DINV 0.0020166218 0.27916925
DCONS 0.0001296675 0.0001069801
sigma
0.00202
1.29668e-04 1.06980e-04
chol:
0.04491 0.00000
0.00289 0.00993
Decomposition of Variance for Series DINV
Step Std Error DINV DCONS
1 0.04490681 100.000 0.000
2 0.04663193 96.202 3.798
3 0.04675769 95.822 4.178
4 0.04676489 95.798 4.202
5 0.04676525 95.797 4.203
6 0.04676527 95.797 4.203
7 0.04676527 95.797 4.203
8 0.04676527 95.797 4.203
9 0.04676527 95.797 4.203
10 0.04676527 95.797 4.203
Decomposition of Variance for Series DCONS
Step Std Error DINV DCONS
1 0.01034312 7.794 92.206
2 0.01038074 7.968 92.032
3 0.01038115 7.976 92.024
4 0.01038118 7.976 92.024
5 0.01038118 7.976 92.024
6 0.01038118 7.976 92.024
7 0.01038118 7.976 92.024
8 0.01038118 7.976 92.024
9 0.01038118 7.976 92.024
10 0.01038118 7.976 92.024
If I try to implement the forumale as in enders4, and just focusing on DINV.
The n-step-ahead FEVD of DINV are:
Step 1
DINV(1)^2 = 0.04491^2 * [-0.252102535(0)^2] + 0.00993^2 * [0.915023222(0)^2] ]
DINV = (0.04491^2 * [-0.252102535(0)^2]) / DINV(1)^2
and
DCONS = (0.00993^2 * [0.915023222(0)^2]) / DINV(1)^2
But they do not equal 100.000 and 0.000?
Amarjit