Dear all,
I am trying to replicate Meese and Rogoff (1983) "Empirical exchange rate models of the seventies Do they fit out of sample ?"
Journal of international Economics 14
Therefore I would like to perform an out of sample forecasting analysis to compare the forecast generated from structural models with those generated from an random walk with drift.
In the basis Theil instruction it is just possible to use a nochange random walk. But how to compare with a random walk with drift?
Therefore I decided to estimate a random walk VAR model with a constant term and compare later the root mean square errors
My code can be found below
Is this the proper way to generate forecasts for a random walk with drift?
Meese and Rogoff use future realized values of the macroeconomic fundamentals to generate forecasts for the exchange rate.
How can I specify that for a multiperiod forecast the true future realizations are used for forecasting?
Is it possible to determine that just for the economic variables the future realizations are used, while for the exchange rate dynamic predictions are used?
Thanks in advance!!!
Wolfgang
CODE:
* forecasting
do iend = ibegin,iend
system(model=varmodel)
* le is the logarithmic exchange rate
variables le sharediff idiff infdiff ydiff cadiff
lags 1 to 4
det constant
end(system)
estimate(outsigma=mysigma,coeffs=mycoeffs,residual=varresid, noprint) iend-40 iend
system(model=rawalk)
variables le
lags 1 to 1
det constant
end(system)
estimate(outsigma=mysigmarw,coeffs=mycoeffsrw,residual=varresidrw, noprint) iend-40 iend
forecast(model=rawalk,results=result) * nstep iend+1 iend+nstep
forecast(model=varmodel,results=result) * nstep iend+1 iend+nstep
end do
*rmse for structural model
theil(setup, model=varmodel, steps =nstep, to=iend)
do time=1984:01,2008:04
theil time
end
theil(dump)
* rmse for random walk
theil(setup, model=rawalk, steps =nstep, to=iend)
do time=1984:01,2008:04
theil time
end
theil(dump)
