Skip to main content

14.1. Stochastic Frontier Efficiency and Structural Total Factor Productivity

Verified Environments & Platforms:EcoDataEcoLabFincoVietLOD

Methodological Part 14.1. Stochastic Frontier Efficiency and Structural Total Factor Productivity in 14. Productivity, Frontier Efficiency and Structural Production Functions provides step-by-step How-To implementation guides for 7 econometric model lessons spanning from Section 14.1.1 to 14.1.7. Full theoretical derivations are available at VietLOD Part 14.1 alongside cloud execution on EcoLab.

Video Tutorial: How-To Guide for Part 14.1: Stochastic Frontier Efficiency and Structural Total Factor Productivity in Stata 18, R 4.x, and Python 3.11+

14.1.1. Methodological Overview and Structural Equations​

  • Methodological Focus: Provides consistent estimation and robust inference for Stochastic Frontier Efficiency and Structural Total Factor Productivity specifications within Productivity, Frontier Efficiency and Structural Production Functions.
  • Mandatory Post-Estimation Diagnostics: Tỷ trọng phương sai phi hiệu quả γ=σu2/(σv2+σu2)\gamma = \sigma_u^2 / (\sigma_v^2 + \sigma_u^2) và λ=σu/σv\lambda = \sigma_u/\sigma_v, kiểm định Kodde–Palm mixed-χ2\chi^2 LR cho H0:σu2=0H_0: \sigma_u^2 = 0 — có tồn tại phi hiệu quả hay chỉ là OLS, phân phối TE..

Core structural specification for Part 14.1:

ln⁡Yit=Xit⊤β+vit−uit,vit∼N(0,σv2),uit∼N+(μit,σu2),TEit=E[exp⁡(−uit)∣εit]\ln Y_{it} = X_{it}^\top \beta + v_{it} - u_{it}, \quad v_{it} \sim \mathcal{N}(0, \sigma_v^2), \quad u_{it} \sim \mathcal{N}^+(\mu_{it}, \sigma_u^2), \quad \text{TE}_{it} = \text{E}[\exp(-u_{it}) \mid \varepsilon_{it}]

Estimator objective and moment conditions:

ln⁡Yit=β0+βKln⁡Kit+βLln⁡Lit+ωit−uit+vit,TFP^it=exp⁡(ln⁡Yit−β^Kln⁡Kit−β^Lln⁡Lit)\ln Y_{it} = \beta_0 + \beta_K \ln K_{it} + \beta_L \ln L_{it} + \omega_{it} - u_{it} + v_{it}, \quad \widehat{\text{TFP}}_{it} = \exp\left(\ln Y_{it} - \hat{\beta}_K \ln K_{it} - \hat{\beta}_L \ln L_{it}\right)
Methodological Scope Boundary:When empirical data violate the identification conditions of Part 14.1, researchers should transition to the extended methodological parts in Chapter 14 or apply appropriate instrumental-variable and cluster-robust corrections.

14.1.2. Econometric Model Lessons in Part 14.1​

14.1.1 · sfa_frontier
14.1.1. Stochastic Frontier Analysis Production and Cost MLE

Separates symmetric random noise v_i ~ N — 0, sigma_v^2 — from one-sided technical inefficiency u_i >= 0 via MLE, reporting Jondrow E[exp...

Explore Guide
14.1.2 · dea_efficiency
14.1.2. Data Envelopment Analysis CRS VRS and Simar-Wilson Bootstrap

Solves HiGHS linear programs for every DMU under Constant — CCR — and Variable — BCC — Returns to Scale to measure Technical Efficiency, Sca...

Explore Guide
14.1.3 · malmquist_productivity
14.1.3. Fare-Grosskopf-Norris-Zhang Malmquist TFP Growth Index

Computes cross-period radial LP distance functions D^t — x^t,y^t , D^[t+1] — x^[t+1],y^[t+1] , D^t — x^[t+1],y^[t+1] , and D^[t+1] — x^t,y^t...

Explore Guide
14.1.4 · acf_production_tfp
14.1.4. Ackerberg-Caves-Frazer Structural Production Function and Firm TFP

Consistently estimates labor and capital elasticities and firm-level Total Factor Productivity omega_it via two-stage intermediate-input pro...

Explore Guide

14.1.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
14.1.1 · Stochastic Frontier Analysis Production and Cost MLEsfa_frontierfrontier ln_y ln_k ln_l, dist(tnormal) vce(robust)frontier::sfa(ln_y ~ ln_k + ln_l, data = df, ineffDecrease = TRUE)scipy.optimize.minimize(sfa_halfnormal_negloglik, theta0, method='BFGS')Available
14.1.2 · Data Envelopment Analysis CRS VRS and Simar-Wilson Bootstrapdea_efficiencyteradial y = x1 x2, rts(vrs) base(input)Benchmarking::dea(X, Y, RTS = 'vrs', ORIENTATION = 'in')scipy.optimize.linprog(c_dea, A_ub=A_dea, b_ub=b_dea, method='highs')Available
14.1.3 · Fare-Grosskopf-Norris-Zhang Malmquist TFP Growth Indexmalmquist_productivitymalmq2 x1 x2 = y, ort(o) fgnzBenchmarking::malmquist.components(X, Y, ID = df$id, TIME = df$year)scipy.optimize.linprog(c_malm, A_ub=A_malm, b_ub=b_malm, method='highs')Available
14.1.4 · Ackerberg-Caves-Frazer Structural Production Function and Firm TFPacf_production_tfpprodest ln_va, free(ln_l) state(ln_k) proxy(ln_m) met(acf) id(id) t(year)prodest::prodestACF(Y = df$ln_va, fX = df$ln_l, sX = df$ln_k, pX = df$ln_m, idvar = df$id, timevar = df$year)smf.ols('ln_va ~ ln_l + poly_k_m', data=df).fit(cov_type='cluster', cov_kwds={'groups': df['id']})Available

| 14.1.5 · Translog Flexible Production and Cost Function Christensen Jorgenson Lau | translog_production_jorgenson | regress lny lnx1 lnx2 c.lnx1#c.lnx1 c.lnx1#c.lnx2, vce(robust) | micEcon::translogEst | Mean-centered quadratic + cross-product Translog OLS + Cobb-Douglas F-test | Available | | 14.1.6 · Solow Residual and Divisia Tornqvist Growth Accounting TFP | solow_growth_accounting_tfp | regress lny x1 x2, vce(robust) + predict solow_tfp, resid | stats::lm(log(y) ~ x1 + x2) + Divisia TFP index | Log-output factor elasticity estimation + Solow TFP growth decomposition | Available | | 14.1.7 · Greene True Fixed Effects Panel Stochastic Frontier | true_fixed_effects_sfa_greene | sfpanel lny x1 x2, model(tfe) / xtreg lny x1 x2, fe vce(robust) | sfaR::sfacross / plm within + half-normal frontier MLE | Greene (2005) within-transformed half-normal SFA MLE + Jondrow-Lovell-Materov JLMS efficiency | Available |

14.1.4. Standard Implementation Workflow for Part 14.1​

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

Download the model-specific .csv practice dataset in Part 14.1 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 14.1.1 to 14.1.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 Tỷ trọng phương sai phi hiệu quả γ=σu2/(σv2+σu2)\gamma = \sigma_u^2 / (\sigma_v^2 + \sigma_u^2) và λ=σu/σv\lambda = \sigma_u/\sigma_v, kiểm định Kodde–Palm mixed-χ2\chi^2 LR cho H0:σu2=0H_0: \sigma_u^2 = 0 — có tồn tại phi hiệu quả hay chỉ là OLS, phân phối TE. and dispatch the specification to EcoLab for automated journal-grade reporting.