Hello.
If anyone can help me with STATA code, I would really appreciate it.
I am very new to STATA and also statistics.
I want to compare the following ECM based forecasting model's out-of-sample forecasting ability with random walk's.
1. How can I generate random walk out-of-sample forecasts for various forecast horizons(1 quarter, 4quarters, 20quarters)?
2. How can I generate random walk out-of-sample forecasts with rolling regression(RO and AD) based on 20 quarters data for various forecast horizons(1 quarter, 4quarters, 20quarters)?
3. How can I generate ECM model out-of-sample forecasts with rolling regressions(RO and AS) based on 20 quarters data for various forecast horizons(1 quarter, 4quarters, 20quarters)?
If anyone can give me some advice, I would be sincerely appreciate it.
Thank you!.
The followings: 1. random walk 2. random walk with drift 3. ECM(error correction model)
Array
Related Posts with Random walk forecasting with rolling regression code
What is the best method / code of calculating respondents' ages?I have two variable: Q26 (month) and Q27 (year). Q26: What month were you born? The answer is 12 mon…
Firm vs Industry fixed effectsDear Statalists, I am struggling with choosing firm or industry fixed-effect for my regression with…
Interaction vs. Sub-group AnalysisHi, I have a puzzling result that I cannot reconcile, so I am writing to seek some help. I have tri…
Propensity score matching problemI'm doing a propensity score matching estimation. The code is as follows, psmatch2 highMacroSubFirm …
Imposing cross equation restriction for more than two equations in sur modelI have a dataset where the dependent variable has 4 categories namely P1, Q1, R1, S1. There is a pos…
Subscribe to:
Post Comments (Atom)
0 Response to Random walk forecasting with rolling regression code
Post a Comment