6.4. State-Space and Unobserved Components Models
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:
Estimator objective and moment conditions:
6.4.2. Econometric Model Lessons in Part 6.4
Estimates the Seasonal ARIMA with Exogenous Regressors — SARIMAX specification within the State-Space and Unobserved Components Models frame...
Estimates the Structural Unobserved Components Time Series specification within the State-Space and Unobserved Components Models framework b...
Estimates the Dynamic Factor Time-Series Estimator specification within the State-Space and Unobserved Components Models framework by optimi...
6.4.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 |
|---|---|---|---|---|---|
| 6.4.1 · Seasonal ARIMA with Exogenous Regressors — SARIMAX | sarimax | arima 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 Series | unobserved_components | ucm y, model(lltrend) | StructTS(y, type = 'trend') | UnobservedComponents(y, level='local linear trend').fit() | Available |
| 6.4.3 · Dynamic Factor Time-Series Estimator | dynamic_factor | dfactor (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.