OpenEconometrics

Methods

One page per method family: what the estimator does, the OpenEconometrics function and the Stata command it corresponds to, the options it supports, a runnable example with its real output, its limitations and the papers behind it.

Browse learning paths · How we prepare these pages

Subscribe with RSS

Linear models and IV

Least squares, instrumental variables, systems of equations and quantile regression.

Panel data

Fixed and random effects, absorbed fixed effects, dynamic panels and multilevel models.

Causal inference

Difference-in-differences, event studies, regression discontinuity, treatment effects and synthetic control.

Limited and duration outcomes

Binary, ordered, multinomial, count, censored, selected and survival outcomes.

Time series

ARIMA, vector autoregressions, volatility models, unit roots and cointegration.

Tests and inference

Specification tests, bootstrap inference with few clusters and corrections for many tests.

Find a method by Stata command

Each Stata command named in the capability inventory, with the OpenEconometrics function and the page that explains it. The names identify a workflow; they are not a claim of numerical parity.

Stata commandOpenEconometricsMethod page
archoe.archGARCH models in Python: ARCH, GARCH, GJR and EGARCH
ardloe.ardlCointegration in Python: ARDL bounds test, Engle–Granger and Johansen
ardl, ecoe.ardlCointegration in Python: ARDL bounds test, Engle–Granger and Johansen
arimaoe.arimaARIMA in Python: ARIMA, seasonal ARIMA and ARMAX models
boottestoe.wild_cluster_confidence_setWild cluster bootstrap in Python: a boottest workflow for few clusters
boottestoe.wild_cluster_testWild cluster bootstrap in Python: a boottest workflow for few clusters
bsqregoe.bsqregQuantile regression in Python: qreg, bootstrap and simultaneous quantiles
csdidoe.csdidStaggered difference-in-differences in Python: Callaway–Sant'Anna csdid
dfglsoe.dfglsUnit root tests in Python: ADF, KPSS, Phillips–Perron and DF-GLS
dfulleroe.dfullerUnit root tests in Python: ADF, KPSS, Phillips–Perron and DF-GLS
didregressoe.didregressDifference-in-differences in Python: didregress and parallel trends
egrangeroe.egrangerCointegration in Python: ARDL bounds test, Engle–Granger and Johansen
estat abondoe.xtdpdArellano–Bond and system GMM in Python: xtabond and xtabond2
estat concordanceoe.stcoxSurvival analysis in Python: Cox proportional hazards, stcox and streg
estat ectestoe.ardlCointegration in Python: ARDL bounds test, Engle–Granger and Johansen
estat endogenousoe.ivregressInstrumental variables in Python: 2SLS, LIML and GMM
estat firststageoe.ivregressInstrumental variables in Python: 2SLS, LIML and GMM
estat gofoe.poissonPoisson regression, negative binomial and PPML gravity models in Python
estat grangeroe.didregressDifference-in-differences in Python: didregress and parallel trends
estat overidoe.ivregressInstrumental variables in Python: 2SLS, LIML and GMM
estat phtestoe.stcoxSurvival analysis in Python: Cox proportional hazards, stcox and streg
estat ptrendsoe.didregressDifference-in-differences in Python: didregress and parallel trends
estat sarganoe.xtdpdArellano–Bond and system GMM in Python: xtabond and xtabond2
eventddoe.eventstudyEvent study regression in Python: leads, lags and pre-trend tests
fcast computeoe.varVAR and vector error correction models (VECM) in Python
fcast computeoe.vecVAR and vector error correction models (VECM) in Python
hausmanoe.hausmanHausman test in Python: fixed or random effects?
hdidregressoe.csdidStaggered difference-in-differences in Python: Callaway–Sant'Anna csdid
heckmanoe.heckmanHeckman selection model in Python: ML and two-step estimation
heckman, twostepoe.heckmanHeckman selection model in Python: ML and two-step estimation
iqregoe.iqregQuantile regression in Python: qreg, bootstrap and simultaneous quantiles
irf createoe.irfVAR and vector error correction models (VECM) in Python
irf createoe.varVAR and vector error correction models (VECM) in Python
ivreg2oe.ivregressInstrumental variables in Python: 2SLS, LIML and GMM
ivregress 2slsoe.ivregressInstrumental variables in Python: 2SLS, LIML and GMM
ivregress gmmoe.ivregressInstrumental variables in Python: 2SLS, LIML and GMM
ivregress limloe.ivregressInstrumental variables in Python: 2SLS, LIML and GMM
kpssoe.kpssUnit root tests in Python: ADF, KPSS, Phillips–Perron and DF-GLS
logitoe.logitLogit and probit regression in Python with marginal effects
mixedoe.mixedMixed effects and multilevel models in Python: random intercepts and slopes
mlogitoe.mlogitOrdered logit, ordered probit and multinomial logit in Python
nbregoe.nbregPoisson regression, negative binomial and PPML gravity models in Python
ologitoe.ologitOrdered logit, ordered probit and multinomial logit in Python
oprobitoe.oprobitOrdered logit, ordered probit and multinomial logit in Python
poissonoe.poissonPoisson regression, negative binomial and PPML gravity models in Python
pperronoe.pperronUnit root tests in Python: ADF, KPSS, Phillips–Perron and DF-GLS
ppmlhdfeoe.ppmlhdfePoisson regression, negative binomial and PPML gravity models in Python
probitoe.probitLogit and probit regression in Python with marginal effects
qregoe.qregQuantile regression in Python: qreg, bootstrap and simultaneous quantiles
rdbwselectoe.rdrobustRegression discontinuity in Python: rdrobust with robust bias correction
rddensityoe.rddensityRegression discontinuity in Python: rdrobust with robust bias correction
rdplotoe.rdplotRegression discontinuity in Python: rdrobust with robust bias correction
rdrobustoe.rdrobustRegression discontinuity in Python: rdrobust with robust bias correction
reg3oe.reg3SUR regression and three-stage least squares in Python
reghdfeoe.reghdfereghdfe in Python: regression with high-dimensional fixed effects
reghdfe (event-time indicators)oe.eventstudyEvent study regression in Python: leads, lags and pre-trend tests
regressoe.olsOLS regression in Python with robust and clustered standard errors
sqregoe.sqregQuantile regression in Python: qreg, bootstrap and simultaneous quantiles
stcoxoe.stcoxSurvival analysis in Python: Cox proportional hazards, stcox and streg
stregoe.stregSurvival analysis in Python: Cox proportional hazards, stcox and streg
stsoe.stsSurvival analysis in Python: Cox proportional hazards, stcox and streg
suregoe.suregSUR regression and three-stage least squares in Python
teffects aipwoe.teffectsTreatment effects in Python: propensity score matching, IPW and AIPW
teffects ipwoe.teffectsTreatment effects in Python: propensity score matching, IPW and AIPW
teffects ipwraoe.teffectsTreatment effects in Python: propensity score matching, IPW and AIPW
teffects nnmatchoe.teffectsTreatment effects in Python: propensity score matching, IPW and AIPW
teffects psmatchoe.teffectsTreatment effects in Python: propensity score matching, IPW and AIPW
teffects raoe.teffectsTreatment effects in Python: propensity score matching, IPW and AIPW
teoverlapoe.teffectsTreatment effects in Python: propensity score matching, IPW and AIPW
tobitoe.tobitTobit model and truncated regression in Python
truncregoe.truncregTobit model and truncated regression in Python
varoe.varVAR and vector error correction models (VECM) in Python
vargrangeroe.varVAR and vector error correction models (VECM) in Python
varlmaroe.varVAR and vector error correction models (VECM) in Python
varnormoe.varVAR and vector error correction models (VECM) in Python
varsocoe.varVAR and vector error correction models (VECM) in Python
varsocoe.varsocVAR and vector error correction models (VECM) in Python
varstableoe.varVAR and vector error correction models (VECM) in Python
varwleoe.varVAR and vector error correction models (VECM) in Python
vecoe.vecVAR and vector error correction models (VECM) in Python
veclmaroe.vecVAR and vector error correction models (VECM) in Python
vecnormoe.vecVAR and vector error correction models (VECM) in Python
vecrankoe.vecVAR and vector error correction models (VECM) in Python
vecrankoe.vecrankCointegration in Python: ARDL bounds test, Engle–Granger and Johansen
vecstableoe.vecVAR and vector error correction models (VECM) in Python
xtabondoe.xtabondArellano–Bond and system GMM in Python: xtabond and xtabond2
xtabondoe.xtdpdArellano–Bond and system GMM in Python: xtabond and xtabond2
xtabond2oe.xtdpdArellano–Bond and system GMM in Python: xtabond and xtabond2
xtdidregressoe.didregressDifference-in-differences in Python: didregress and parallel trends
xtdpdoe.xtdpdArellano–Bond and system GMM in Python: xtabond and xtabond2
xtdpdsysoe.xtdpdArellano–Bond and system GMM in Python: xtabond and xtabond2
xtdpdsysoe.xtdpdsysArellano–Bond and system GMM in Python: xtabond and xtabond2
xthdidregressoe.csdidStaggered difference-in-differences in Python: Callaway–Sant'Anna csdid
xtregoe.xtregFixed effects and random effects regression in Python (xtreg)
xtsccoe.xtregFixed effects and random effects regression in Python (xtreg)
xttest0oe.xtregFixed effects and random effects regression in Python (xtreg)
zandrewsoe.zandrewsUnit root tests in Python: ADF, KPSS, Phillips–Perron and DF-GLS