Skip to main content

6.5. Nonlinear Time Series, Structural Breaks and Bubbles

Verified Environments & Platforms:EcoDataEcoLabFincoVietLOD

Methodological Part 6.5. Nonlinear Time Series, Structural Breaks and Bubbles in 6. Univariate, Nonlinear, Structural Break and Bubble Time Series provides step-by-step How-To implementation guides for 7 econometric model lessons spanning from Section 6.5.1 to 6.5.7. Full theoretical derivations are available at VietLOD Part 6.5 alongside cloud execution on EcoLab.

Video Tutorial: How-To Guide for Part 6.5: Nonlinear Time Series, Structural Breaks and Bubbles in Stata 18, R 4.x, and Python 3.11+

6.5.1. Methodological Overview and Structural Equations​

  • Methodological Focus: Provides consistent estimation and robust inference for Nonlinear Time Series, Structural Breaks and Bubbles specifications within Univariate, Nonlinear, Structural Break and Bubble Time Series.
  • Mandatory Post-Estimation Diagnostics: Thống kê Sup-Wald / Sup-LM bootstrap pp-value kiểm định tồn tại ngưỡng, khoảng tin cậy 95%95\% cho điểm ngưỡng γ^\hat{\gamma}, kiểm định phương sai thay đổi từng chế độ..

Core structural specification for Part 6.5:

Yt=Xt⊤β1I(qt≤γ)+Xt⊤β2I(qt>γ)+εt,LRT(γ)=TSSR(γ)−SSR(γ^)SSR(γ^)Y_t = X_t^\top \beta_1 \mathbb{I}(q_t \le \gamma) + X_t^\top \beta_2 \mathbb{I}(q_t \gt \gamma) + \varepsilon_t, \quad \text{LR}_T(\gamma) = T\frac{\text{SSR}(\gamma) - \text{SSR}(\hat{\gamma})}{\text{SSR}(\hat{\gamma})}

Estimator objective and moment conditions:

θ^T=arg⁡max⁡θ∈ΘℓT(Y1,…,YT;θ),Φ(L)(1−L)dYt=μ+Θ(L)εt\hat{\theta}_T = \arg\max_{\theta \in \Theta} \ell_T\left(Y_1, \dots, Y_T; \theta\right), \quad \Phi(L)(1-L)^d Y_t = \mu + \Theta(L)\varepsilon_t
Methodological Scope Boundary:When empirical data violate the identification conditions of Part 6.5, researchers should transition to the extended methodological parts in Chapter 6 or apply appropriate instrumental-variable and cluster-robust corrections.

6.5.2. Econometric Model Lessons in Part 6.5​

6.5.1 · threshold_regression
6.5.1. Hansen Sample-Splitting Threshold Regression

Splits cross-sectional or time-series regressions into distinct regimes around an unknown observable threshold gamma with inverted LR confid...

Explore Guide
6.5.2 · star_smooth_transition
6.5.2. Smooth Transition Autoregressive Model

Models continuous nonlinear transitions between extreme regimes via Logistic LSTAR or Exponential ESTAR transition functions selected by Ter...

Explore Guide
6.5.3 · midas_regression
6.5.3. Mixed-Data Sampling Regression

Parsimoniously links low-frequency macro outcomes to high-frequency distributed lags via normalized exponential Almon polynomials and U-MIDA...

Explore Guide
6.5.4 · bai_perron_break
6.5.4. Bai-Perron Multiple Structural Breaks

Globally partitions time-series regressions into m+1 regimes at unknown break dates via dynamic programming with sup-F, UDmax, and LWZ selec...

Explore Guide
6.5.5 · psy_bubble_gsadf
6.5.5. Phillips-Shi-Yu Recursive Bubble Detection

Detects and date-stamps origination and collapse of multiple explosive speculative bubbles via double-supremum right-tailed ADF windows and ...

Explore Guide

6.5.3. Comparative Execution Syntax Across Stata 18, R 4.x, and Python 3.11+​

Section & Model TitleEstimator KeyStata 18 MP SyntaxR 4.x SyntaxPython 3.11+ SyntaxSupport
6.5.1 · Hansen Sample-Splitting Threshold Regressionthreshold_regressionthreshold y, regionvars(x1 x2) threshvar(q_thresh) nthresholds(1)strucchange::Fstats(y ~ x1 + x2, data = df)smf.ols('y ~ x1 * I(q_thresh > gamma) + x2', data=df).fit(cov_type='HC1')Available
6.5.2 · Smooth Transition Autoregressive Modelstar_smooth_transitionnl (y = ({b0} + {b1}*l1_y) + ({d0} + {d1}*l1_y)/(1 + exp(-{gamma}*(l1_y - {c}))))minpack.lm::nlsLM(y ~ b0 + b1*l1_y + (d0 + d1*l1_y)/(1 + exp(-g*(l1_y - c))), data = df)scipy.optimize.least_squares(lstar_residuals, theta0)Available
6.5.3 · Mixed-Data Sampling Regressionmidas_regressionregress y_q x_m_lag0 x_m_lag1 x_m_lag2, vce(hac nwest 4)midasr::midas_r(y_q ~ mls(x_m, 0:11, 3, nealmon), start = list(x_m = c(1, -0.5)))smf.ols('y ~ x1 + x2', data=df).fit(cov_type='HAC', cov_kwds={'maxlags': 4})Available
6.5.4 · Bai-Perron Multiple Structural Breaksbai_perron_breakregress y x1 x2 -> estat sbsinglestrucchange::breakpoints(y ~ x1 + x2, data = df, h = 0.15)smf.ols('y ~ x1 * I(t >= t_break) + x2', data=df).fit(cov_type='HAC', cov_kwds={'maxlags': 4})Available
6.5.5 · Phillips-Shi-Yu Recursive Bubble Detectionpsy_bubble_gsadfradf y, prefix(bsadf) boot(500)exuber::radf(df$y, lag = 1)adfuller(df['y'], maxlag=2, regression='c', autolag='AIC')Available

| 6.5.6 · Threshold Cointegration and Momentum TAR Balke Fomby Enders Siklos | nonlinear_threshold_ecm | regress y x1 x2 + asymmetric ECM regime F-test | tsDyn::TVECM / apt::ecmAsymFit | Long-run cointegration + M-TAR asymmetric adjustment ECM + symmetry F-test | Available | | 6.5.7 · Functional Coefficient Time Series Regression | functional_coef_far_cai | npregress kernel y x1 x2 / regress y x1 x2, vce(robust) | np::npscoef(txdat = x, tydat = y, tzdat = state) | Cai-Fan-Yao (2000) local-linear Epanechnikov functional-coefficient estimator + constancy F-test | Available |

6.5.4. Standard Implementation Workflow for Part 6.5​

Step 1. Load Standardized Practice Datasets From VietLOD, EcoData, or Finco

Download the model-specific .csv practice dataset in Part 6.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 6.5.1 to 6.5.7 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 Thống kê Sup-Wald / Sup-LM bootstrap pp-value kiểm định tồn tại ngưỡng, khoảng tin cậy 95%95\% cho điểm ngưỡng γ^\hat{\gamma}, kiểm định phương sai thay đổi từng chế độ. and dispatch the specification to EcoLab for automated journal-grade reporting.