Skip to main content

2.3. Dimension Reduction and Latent Factors

Verified Environments & Platforms:EcoDataEcoLabFincoVietLOD

Methodological Part 2.3. Dimension Reduction and Latent Factors in 2. Regularized, High-Dimensional Inference and Dimension Reduction Models provides step-by-step How-To implementation guides for 6 econometric model lessons spanning from Section 2.3.1 to 2.3.6. Full theoretical derivations are available at VietLOD Part 2.3 alongside cloud execution on EcoLab.

Video Tutorial: How-To Guide for Part 2.3: Dimension Reduction and Latent Factors in Stata 18, R 4.x, and Python 3.11+

2.3.1. Methodological Overview and Structural Equations​

  • Methodological Focus: Provides consistent estimation and robust inference for Dimension Reduction and Latent Factors specifications within Regularized, High-Dimensional Inference and Dimension Reduction Models.
  • Mandatory Post-Estimation Diagnostics: Tỷ lệ phương sai giải thích tích lũy đạt từ 80%80\% trở lên, biểu đồ Scree plot trị riêng và K-Fold (CV) (MSE) để chọn số thành phần MM.

Core structural specification for Part 2.3:

Zm=XVm,β^PCR=Vm(Zm⊤Zm)−1Zm⊤YZ_m = X V_m, \quad \hat{\beta}_{\text{PCR}} = V_m (Z_m^\top Z_m)^{-1} Z_m^\top Y

Estimator objective and moment conditions:

β^(λ,α)=arg⁡min⁡β∈Rp{12N∑i=1N(Yi−Xi⊤β)2+λ(α∥β∥1+1−α2∥β∥22)}\hat{\beta}(\lambda, \alpha) = \arg\min_{\beta \in \mathbb{R}^p} \left\{\frac{1}{2N}\sum_{i=1}^N \left(Y_i - X_i^\top \beta\right)^2 + \lambda\left(\alpha \|\beta\|_1 + \frac{1-\alpha}{2}\|\beta\|_2^2\right)\right\}
Methodological Scope Boundary:When empirical data violate the identification conditions of Part 2.3, researchers should transition to the extended methodological parts in Chapter 2 or apply appropriate instrumental-variable and cluster-robust corrections.

2.3.2. Econometric Model Lessons in Part 2.3​

2.3.1 · pcr
2.3.1. Principal Component Regression — PCR

Estimates the Principal Component Regression — PCR specification within the Dimension Reduction and Latent Factors framework by optimizing t...

Explore Guide
2.3.2 · pls_regression
2.3.2. Partial Least Squares Regression

Extracts latent components maximizing predictor-outcome covariance under severe multicollinearity. Across empirical econometrics, `pls_regre...

Explore Guide
2.3.3 · pca_factors
2.3.3. Principal Component Analysis and Composite Index

Extracts orthogonal latent principal components and builds variance-weighted composite indices with KMO and Bai-Ng diagnostics. Across empir...

Explore Guide
2.3.4 · factor_analysis
2.3.4. Exploratory Factor Analysis

Decomposes observed indicator covariance into common latent constructs and idiosyncratic measurement uniqueness with Varimax rotation. Acros...

Explore Guide

2.3.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
2.3.1 · Principal Component Regression — PCRpcrpca x1 x2 x3 -> predict pc1 pc2, score -> regress y pc1 pc2pls::pcr(y ~ x1 + x2, validation = 'CV', data = df)Pipeline([('scaler', StandardScaler()), ('pca', PCA(n_components=2)), ('ols', LinearRegression())]).fit(X, y)Available
2.3.2 · Partial Least Squares Regressionpls_regressionplssem (Y > y) (X > x1 x2), structural(Y X)pls::plsr(y ~ x1 + x2, ncomp = 2, validation = 'CV', data = df)PLSRegression(n_components=2).fit(X, y)Available
2.3.3 · Principal Component Analysis and Composite Indexpca_factorspca x1 x2 x3, components(2)stats::prcomp(df[, c('x1', 'x2')], scale. = TRUE)PCA(n_components=2).fit_transform(X_std)Available
2.3.4 · Exploratory Factor Analysisfactor_analysisfactor x1 x2 x3, ml factors(2)stats::factanal(df[, c('x1', 'x2', 'x3')], factors = 1, rotation = 'varimax')FactorAnalysis(n_components=2, rotation='varimax').fit(X_std)Available

| 2.3.5 · Sparse Principal Component Regression | sparse_pca_zou | pca x1 x2 & regress y x1 x2, vce(robust) | elasticnet::spca + stats::lm | sklearn.decomposition.SparsePCA + back-projected OLS factor regression | Available | | 2.3.6 · Sliced Inverse Regression Sufficient Dimension Reduction | sufficient_dimension_reduction_sir | regress y x1 x2, vce(robust) | dr::dr(y ~ x1 + x2, method = 'sir') | Standardized slice-covariance eigendecomposition + Li (1991) dimensionality test + EDR projection | Available |

2.3.4. Standard Implementation Workflow for Part 2.3​

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

Download the model-specific .csv practice dataset in Part 2.3 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 2.3.1 to 2.3.6 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 Tỷ lệ phương sai giải thích tích lũy đạt từ 80%80\% trở lên, biểu đồ Scree plot trị riêng và K-Fold (CV) (MSE) để chọn số thành phần MM and dispatch the specification to EcoLab for automated journal-grade reporting.