Efficiency Frontiers (SFA, DEA, Malmquist) & Structural TFP (OP, LP, ACF)
Family 14 (Productivity, Frontier & TFP Estimation) delivers parametric, non-parametric, and structural control-function estimators for technical efficiency, cost efficiency, and firm-level Total Factor Productivity (TFP) across manufacturing firms, commercial banks, hospitals, and regional economies.
In EcoLab, access these estimators under Modeling → 14. Frontier & TFP Estimation. See also the 16-Family Estimator Catalog.
When Should You Use Family 14?
- Stochastic Frontier Analysis (SFA — Aigner-Lovell-Schmidt, Battese-Coelli): When separating symmetric random shocks from one-sided technical or cost inefficiency under Cobb-Douglas or Translog production/cost frontiers.
- Data Envelopment Analysis (DEA — CCR, BCC) & Malmquist Index: When benchmarking multi-input, multi-output decision-making units without imposing parametric functional forms, or decomposing dynamic productivity growth into technological frontier shifts and efficiency catch-up.
- Structural Production Functions (Olley-Pakes, Levinsohn-Petrin, Wooldridge, Ackerberg-Caves-Frazer ACF TFP): When estimating firm-level production elasticities (e.g., on listed corporate financials or enterprise surveys) where variable input choices correlate with unobserved productivity shocks (solving Marschak-Andrews simultaneity bias).
Structural Mathematical Specifications
1. Panel Stochastic Production Frontier (Battese & Coelli, 1995)
Unit-specific technical efficiency is recovered via .
2. Ackerberg-Caves-Frazer Structural TFP (ACF, 2015)
For log value added with labor , capital , and first-order Markov productivity :
Inverting strictly monotonic intermediate input demand , Stage 1 purges measurement noise to recover expected output , while Stage 2 jointly identifies via GMM orthogonality conditions on productivity innovations .
Identification Assumptions and Postestimation Diagnostics
- Boundary Likelihood-Ratio Test for Inefficiency (SFA): Generalized LR test of evaluated against the Kodde-Palm mixed distribution alongside variance-share .
- Scale Efficiency & Bias-Corrected Frontiers (DEA): Compares CRS (CCR) and VRS (BCC) scores to isolate scale efficiency, paired with Simar-Wilson bootstrap confidence intervals.
- Proxy Monotonicity & Returns-to-Scale Wald Tests (OP/LP/Wooldridge/ACF): Verifies strictly positive investment (OP) or intermediate materials (LP/ACF), tests constant returns to scale , and reports Hansen overidentification statistics.
Three-Language Replication Code Examples
- StataNow 19.5 MP
- R
- Python
* === 1. Panel Stochastic Production Frontier (Battese-Coelli SFA) ===
xtset firm_id year
xtfrontier ln_output ln_capital ln_labor, tvd
predict te_sfa, te
* === 2. Ackerberg-Caves-Frazer Structural TFP (prodest) ===
prodest ln_va, free(ln_labor) state(ln_capital) proxy(ln_materials) ///
va acf id(firm_id) t(year) reps(50)
predict tfp_acf, resid
# === 1. Stochastic Frontier Analysis (frontier) ===
library(frontier)
sfa_fit <- sfa(ln_output ~ ln_capital + ln_labor | export_dummy + firm_age, data = df)
summary(sfa_fit)
df$te_score <- efficiencies(sfa_fit)
# === 2. Structural Production Function & TFP (prodest) ===
library(prodest)
acf_fit <- prodestACF(Y = df$ln_va, fX = df$ln_labor, sX = df$ln_capital,
pX = df$ln_materials, idvar = df$firm_id, timevar = df$year)
summary(acf_fit)
df$tfp_acf <- omega(acf_fit)
# === Structural Two-Step Control-Function ACF GMM ===
import numpy as np
import statsmodels.api as sm
from scipy.optimize import minimize
# Stage 1: Third-order polynomial approximation purging measurement error
poly_terms = np.column_stack([
df["ln_k"], df["ln_l"], df["ln_m"],
df["ln_k"] ** 2, df["ln_l"] ** 2, df["ln_m"] ** 2,
df["ln_k"] * df["ln_m"], df["ln_l"] * df["ln_m"],
])
phi_hat = sm.OLS(df["ln_va"], sm.add_constant(poly_terms)).fit().fittedvalues
# Stage 2: GMM orthogonality on Markov productivity innovations xi_it
def acf_gmm_loss(beta):
b_l, b_k = beta
omega = phi_hat - b_l * df["ln_l"].to_numpy() - b_k * df["ln_k"].to_numpy()
omega_lag = df.assign(om=omega).groupby("firm_id")["om"].shift(1)
valid = omega_lag.notna()
xi = sm.OLS(omega[valid], sm.add_constant(omega_lag[valid])).fit().resid
Z = np.column_stack([df.loc[valid, "ln_k"], df.groupby("firm_id")["ln_l"].shift(1)[valid]])
moments = (Z.T @ xi) / valid.sum()
return float(moments @ moments)
opt = minimize(acf_gmm_loss, x0=[0.6, 0.35], method="BFGS")
print("ACF structural elasticities (beta_l, beta_k):", opt.x)