Panel Data Analysis and DiD Tools Online
Models for data that follow the same units over time: fixed and random effects with the tests that choose between them, and difference-in-differences with an event study for policy evaluation.
Panel Data Regression: Fixed and Random Effects
Pooled OLS, fixed effects, random effects, two-way FE and first differences side by side, with F, Breusch-Pagan LM and Hausman tests.
Replaces Stata xtreg · EViewsHausman Test: Fixed vs Random Effects
Choose between fixed and random effects for panel data, with the full coefficient comparison and supporting F and LM tests.
Replaces Stata hausmanDifference-in-Differences (DiD) Analysis
Classic 2×2 DiD, two-way fixed effects and an event-study plot with a pre-trend test, with clustered standard errors.
Replaces Stata · R fixestInterrupted Time Series (Campaign Impact) Analysis
Segmented regression of a time series before and after a campaign, launch or policy: level change, slope change, counterfactual and cumulative effect with robust standard errors.
Replaces Stata itsa · R CausalImpactSynthetic Control Method
Estimate the effect of a campaign or policy on one treated unit (region, store, country) by building a weighted synthetic control from untreated units, with placebo inference.
Replaces Stata synth · R SynthPanel Data Regression: Fixed and Random Effects
Use panel models when the same entities (firms, countries, people) are observed over several periods, to control for unobserved heterogeneity.
Hausman Test: Fixed vs Random Effects
Run it whenever you must justify fixed or random effects in a panel study.
Difference-in-Differences (DiD) Analysis
Use DiD to evaluate a policy, programme or event that affected some units and not others, when you observe both groups before and after.
Interrupted Time Series (Campaign Impact) Analysis
Use interrupted time series when an intervention (campaign, launch, price change, policy, website redesign) starts at a known time and you have a series of regular observations before and after it, but no randomised control group.
Synthetic Control Method
Use the synthetic control method when a single unit (or a few) received an intervention, such as a regional campaign, a city-level price change, a new store format or a national policy, and you have outcome data for that unit and for several comparable untreated units over many periods before and after.
Other categories
Data cleaning and preparation · Describe and explore · Compare means · Nonparametric tests · Correlation and regression · Bayesian statistics · Categorical data · Reliability and agreement · Multivariate analysis · Structural equation modeling · Econometrics and time series · Marketing research · Marketing analytics · Survival, clinical and meta-analysis · Study planning and calculators · PLS-SEM