Skip to content

User Guide

PanelBox provides 70+ econometric models across 11 families, covering virtually every panel data method used in applied research. Each guide below introduces the model family, lists available estimators, and provides quick-start code examples.

All models follow a consistent API: define a formula, pass your data with entity and time identifiers, and call .fit(). Results objects provide .summary(), coefficient tables, diagnostic tests, and export to HTML/LaTeX.

Choosing a Model Family

Your Data Recommended Family Guide
Continuous outcome, no dynamics Static Models Pooled OLS, FE, RE
Lagged dependent variable Dynamic GMM Arellano-Bond, System GMM
Spatial dependence across units Spatial SAR, SEM, SDM
Efficiency / productivity analysis Stochastic Frontier SFA, Four-Component
Heterogeneous effects across distribution Quantile FE Quantile, Canay
Multiple interdependent outcomes Panel VAR VAR, VECM, IRF
Binary / ordered / multinomial outcome Discrete Choice Logit, Probit, Ordered
Count outcome (0, 1, 2, ...) Count Data Poisson, NegBin, PPML
Censored / truncated / selected sample Censored & Selection Tobit, Heckman
Endogenous regressors Instrumental Variables Panel 2SLS

Quick Example

from panelbox import FixedEffects
from panelbox.datasets import load_grunfeld

data = load_grunfeld()
model = FixedEffects("invest ~ value + capital", data, "firm", "year")
results = model.fit(cov_type="clustered")
print(results.summary())

See Also