Panel regression fits pooled OLS, fixed effects (within) or random effects to longitudinal data, with a Hausman test to choose between FE and RE.
Panel data follows the same entities over time. Pooled OLS ignores the panel structure. Fixed effects (the within estimator) subtracts each entity's own mean, sweeping out every time-invariant confounder — the workhorse when unobserved entity traits may correlate with the regressors. Random effects treats those entity effects as random draws, gaining efficiency but only valid when they're uncorrelated with the regressors.
The Hausman test formalizes that trade-off: H₀ is that RE is consistent; a small p-value says RE is biased and you should use FE.
Dependent variable + numeric regressors + an entity index and a time index + model choice.
Coefficients (est / SE / t / p), R², F, and — if requested — the Hausman χ² with an FE/RE recommendation.
FE coefficients are within-entity effects. If the Hausman test rejects, prefer FE; otherwise RE is more efficient.