7.5. Threshold Autoregression and Markov Regime Switching
Methodological Part 7.5. Threshold Autoregression and Markov Regime Switching in 7. Multivariate Time Series, Local Projections and Spillover Networks provides step-by-step How-To implementation guides for 3 econometric model lessons spanning from Section 7.5.1 to 7.5.3. Full theoretical derivations are available at VietLOD Part 7.5 alongside cloud execution on EcoLab.
Video Tutorial: How-To Guide for Part 7.5: Threshold Autoregression and Markov Regime Switching in Stata 18, R 4.x, and Python 3.11+
7.5.1. Methodological Overview and Structural Equations
- Methodological Focus: Provides consistent estimation and robust inference for Threshold Autoregression and Markov Regime Switching specifications within Multivariate Time Series, Local Projections and Spillover Networks.
- Mandatory Post-Estimation Diagnostics: Kiểm định tính phi tuyến ngưỡng Hansen Sup-(LM) có Bootstrap, ước lượng lưới tìm ngưỡng và độ trễ ngưỡng tối ưu hóa tổng bình phương phần dư, và kiểm định nhiễu trắng phần dư.
Core structural specification for Part 7.5:
Estimator objective and moment conditions:
7.5.2. Econometric Model Lessons in Part 7.5
Estimates the Self-Exciting Threshold Autoregression — SETAR specification within the Threshold Autoregression and Markov Regime Switching f...
Estimates the Hamilton Markov Regime-Switching Regression specification within the Threshold Autoregression and Markov Regime Switching fram...
Jointly models regime-switching intercepts, autoregressive dynamics, and shock covariances governed by a hidden Markov transition matrix. Ac...
7.5.3. Comparative Execution Syntax Across Stata 18, R 4.x, and Python 3.11+
| Section & Model Title | Estimator Key | Stata 18 MP Syntax | R 4.x Syntax | Python 3.11+ Syntax | Support |
|---|---|---|---|---|---|
| 7.5.1 · Self-Exciting Threshold Autoregression — SETAR | setar | threshold y, threshvar(L.y) regionvars(L.y) | tsDyn::setar(df$y, m = 1, thDelay = 1) | smf.ols('y ~ l1_y * I(l1_y > gamma)', data=df).fit(cov_type='HC1') | Available |
| 7.5.2 · Hamilton Markov Regime-Switching Regression | markov_regression | mswitch dr y x1, states(2) varswitch | MSwM::msmFit(lm(y ~ x1, data = df), k = 2, sw = c(TRUE, TRUE, TRUE)) | MarkovRegression(df['y'], k_regimes=2, exog=df[['x1']], switching_variance=True).fit() | Available |
| 7.5.3 · Multivariate Markov-Switching Vector Autoregression | ms_var | mswitch dr y x1 x2, states(2) varswitch | MSwM::msmFit(lm(y ~ l1_y + x1, data = df), k = 2, sw = c(TRUE, TRUE, TRUE, TRUE)) | MarkovAutoregression(df['y'], k_regimes=2, order=1, exog=df[['x1']]).fit() | Available |
7.5.4. Standard Implementation Workflow for Part 7.5
Step 1. Load Standardized Practice Datasets From VietLOD, EcoData, or Finco
Download the model-specific .csv practice dataset in Part 7.5 or extract custom empirical panels from EcoData and Finco.
Step 2. Select the Optimal Estimator for Your Error and Sample Structure
Compare the estimators from 7.5.1 to 7.5.3 in the syntax matrix above and execute the estimation in Stata 18 MP, R 4.x, or Python 3.11+.
Step 3. Run Mandatory Diagnostics and Export Publication Tables on EcoLab
Verify all required diagnostics including Kiểm định tính phi tuyến ngưỡng Hansen Sup-(LM) có Bootstrap, ước lượng lưới tìm ngưỡng và độ trễ ngưỡng tối ưu hóa tổng bình phương phần dư, và kiểm định nhiễu trắng phần dư and dispatch the specification to EcoLab for automated journal-grade reporting.