4.1.4. Poisson Pseudo-Maximum Likelihood with High-Dimensional Fixed Effects
Section 4.1.4 — Model Code B044 — Estimator Key ppml_hdfe belongs to 4. Count Data, Trade Gravity and Limited Dependent Variable Models 4.1. Baseline Count and Trade Gravity Models, classified at Level L3 — Advanced. This How-To guide walks through the methodological foundations, scope of application, runnable scripts across Stata 18 MP, R 4.x, and Python 3.11+, the standardized vietlod_ppml_hdfe_ecodata.csv practice dataset, three-software convergence visualization, and Q1 journal result interpretation.
Video Tutorial: Video Tutorial for Section 4.1.4: Poisson Pseudo-Maximum Likelihood with High-Dimensional Fixed Effects in Stata 18, R 4.x, and Python 3.11+
4.1.4.1. Methodological Meaning and Scope of Application
4.1.4.1.1. Econometric Foundation and Identification Mechanism
Gold-standard bilateral trade gravity and non-negative flow estimator consistent under arbitrary heteroskedasticity and zero flows. Across empirical econometrics, ppml_hdfe enables researchers to isolate structural parameters while controlling for confounding covariates and verifying identification assumptions via ppmlhdfe in Stata 18 MP, fixest in R 4.x, and pyfixest in Python 3.11+.
4.1.4.1.2. Scope of Application and Sample Structure Requirements
Non-negative continuous or count outcome Y >= 0 including exact zeros, with optional multi-way fixed effects. Mandatory post-estimation verification includes testing identification restrictions, evaluating goodness-of-fit metrics, and confirming numerical convergence across all three econometric engines.
4.1.4.1.3. Structural Equations and Asymptotic Covariance Specification
Core structural equation for ppml_hdfe:
Estimator objective function and sample moment conditions:
Asymptotic covariance matrix and post-estimation diagnostic metric:
4.1.4.2. Real-World Empirical Scenario and Standardized Practice Dataset
- Vietnamese Empirical Benchmark: Evaluates
ppml_hdfeon the Xuất nhập khẩu song phương Việt Nam – đối tác Hải quan empirical dataset with a standardized sample size of observations curated via EcoData and Finco. - International Textbook Benchmark: Silva–Tenreyro Gravity Trade, allowing researchers to cross-reference empirical outputs with canonical graduate econometrics textbooks.
- Direct Practice Dataset Download:
vietlod_ppml_hdfe_ecodata.csvverified by SHA-256 checksume951fe4571685cc9.
Standardized UTF-8 dataset vietlod_ppml_hdfe_ecodata.csv with N = 320 observations and SHA-256 hash e951fe4571685cc9 for exact replication.
Read the complete mathematical derivations and theoretical lecture for Section 4.1.4 on the VietLOD portal.
Execute ppml_hdfe automatically across Stata 18, R 4.x, and Python 3.11+ on EcoLab to export Q1 journal tables.
Build custom empirical panels from Vietnamese macroeconomic, customs, corporate, and financial market databases.