Skip to main content

6.4. State-Space and Unobserved Components Models

Verified Environments & Platforms:EcoDataEcoLabFincoVietLOD

Methodological Part 6.4. State-Space and Unobserved Components Models in 6. Univariate, Nonlinear, Structural Break and Bubble Time Series provides step-by-step How-To implementation guides for 4 econometric model lessons spanning from Section 6.4.1 to 6.4.4. Full theoretical derivations are available at VietLOD Part 6.4 alongside cloud execution on EcoLab.

Video Tutorial: How-To Guide for Part 6.4: State-Space and Unobserved Components Models in Stata 18, R 4.x, and Python 3.11+

6.4.1. Methodological Overview and Structural Equations​

  • Methodological Focus: Provides consistent estimation and robust inference for State-Space and Unobserved Components Models specifications within Univariate, Nonlinear, Structural Break and Bubble Time Series.
  • Mandatory Post-Estimation Diagnostics: Kiểm định ý nghĩa thống kê các biến ngoại sinh, kiểm định nhiễu trắng phần dư chuẩn hóa một bước dự báo Kalman và tiêu chuẩn (AIC) và (BIC).

Core structural specification for Part 6.4:

Φp(L)(1−L)d(Yt−Xt⊤β)=Θq(L)εt\Phi_p(L)(1 - L)^d (Y_t - X_t^\top \beta) = \Theta_q(L)\varepsilon_t

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.4, researchers should transition to the extended methodological parts in Chapter 6 or apply appropriate instrumental-variable and cluster-robust corrections.

6.4.2. Econometric Model Lessons in Part 6.4​

6.4.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.4.1 · Seasonal ARIMA with Exogenous Regressors — SARIMAXsarimaxarima y x1 x2, arima(1,1,1)arima(y, order = c(1, 1, 1), xreg = as.matrix(df[, c('x1', 'x2')]))SARIMAX(df['y'], exog=df[['x1', 'x2']], order=(1, 1, 1)).fit()Available
6.4.2 · Structural Unobserved Components Time Seriesunobserved_componentsucm y, model(lltrend)StructTS(y, type = 'trend')UnobservedComponents(y, level='local linear trend').fit()Available
6.4.3 · Dynamic Factor Time-Series Estimatordynamic_factordfactor (y x1 x2 = , noconstant) (f = , ar(1/2))stats::prcomp(df[, c('y', 'x1', 'x2')], scale. = TRUE)DynamicFactor(df[['y', 'x1', 'x2']], k_factors=1, factor_order=1).fit()Available

| 6.4.4 · Beveridge Nelson Permanent Transitory ARIMA Decomposition | beveridge_nelson_decomposition | ucm y, model(rwdrift) cycle(1) / arima D.y, ar(1) ma(1) | stats::arima(diff(y)) + Beveridge-Nelson exact state-space trend | Wold long-run multiplier Psi(1) state-space Beveridge-Nelson decomposition + HAC regression | Available |

6.4.4. Standard Implementation Workflow for Part 6.4​

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

Download the model-specific .csv practice dataset in Part 6.4 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.4.1 to 6.4.4 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 ý nghĩa thống kê các biến ngoại sinh, kiểm định nhiễu trắng phần dư chuẩn hóa một bước dự báo Kalman và tiêu chuẩn (AIC) và (BIC) and dispatch the specification to EcoLab for automated journal-grade reporting.