Causal analysis for workplace transportation program rollout
Statistics & ExperimentsModel answerLast updated
Design a difference-in-differences study to measure the effect of a staggered employee shuttle program on participation metrics across many sites.
You work with data covering over 1,000 workplace locations. A few hundred of these locations introduced complimentary employee transportation services at various points in time. Your task is to build a credible causal framework to quantify how this transportation benefit affected employee participation and engagement metrics.
Your analysis plan should address:
-
Estimand and measurement: What causal quantity are you targeting (e.g., average treatment effect on the treated)? How will you define and measure the outcomes of interest?
-
Identification approach: Describe your difference-in-differences strategy given that sites adopted at different times. What fixed effects structure will you use?
-
Parallel trends validation: How will you verify that treatment and control sites were on similar trajectories before the program launched? What will you do if this assumption appears violated?
-
Confounding: How will you handle the fact that sites chose when (or whether) to adopt based on factors like employee commute patterns or organizational readiness? What about other changes happening at the same time?
-
Statistical inference: Justify your choices for clustering standard errors and weighting observations.
-
Sample heterogeneity: How will you incorporate sites that never adopt the program, sites that adopt late in your observation window, and sites that close during the study period?
-
Robustness: What alternative specifications and checks will you run to test whether your main findings hold up?
-
Communication: How will you explain your estimate and its uncertainty to business partners who lack statistical training?
Hints
Hint 1
Standard two-way fixed effects regression produces biased estimates when treatment timing varies and effects differ across groups or over time
Hint 2
Think about whether sites that eventually adopted are better controls than sites that never adopted
Hint 3
Event-study plots with pre-treatment periods serve as both a diagnostic and a way to show dynamic effects
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Model Answer: Causal Analysis for Workplace Transportation Program
This question assesses whether you understand that staggered adoption breaks the standard difference-in-differences setup and whether you can design a study that produces a defensible causal estimate from observational rollout data. Strong answers specify the causal target up front, choose methods robust to treatment effect heterogeneity, and anticipate threats to validity before seeing results.
1. Estimand and outcome specification
Target estimand: The average treatment effect on the treated (ATT)—the impact of the transportation program on employees at sites that received it, relative to what would have happened at those same sites without the program. Under staggered adoption, this decomposes into group-cohort effects ATT(g,t) where g denotes the adoption cohort and t denotes calendar time. Aggregate these in two ways:
- By event time (months relative to launch) to show how effects evolve
- Into a single summary ATT averaged over a pre-specified post-treatment window (e.g., first 12 months)
Outcome measures (define before analyzing):
- Primary: Monthly participation indicator (whether an employee attended any engagement activity, on-site event, or program that month)
- Secondary: Engagement survey scores (standardized), average on-site days per month, 6-month and 12-month retention
- Mechanism checks: Commute-related absence rates, total hours worked
Composition adjustment: Transportation programs can change the workforce composition through hiring and retention. The core analysis should use a fixed cohort of employees present before adoption to isolate the effect on existing workers. Separately report effects on the full employee population including new hires.
2. Identification strategy with staggered timing
Classic two-way fixed effects (outcome ~ treated + site_FE + time_FE) is inappropriate here. When effects vary across cohorts or evolve over time, TWFE implicitly uses already-treated units as controls ("forbidden comparisons") and can produce negative weights. Instead, use a heterogeneity-robust estimator:
- Callaway-Sant'Anna: Estimates ATT(g,t) by comparing each adoption cohort to never-treated or not-yet-treated sites, with a doubly robust estimator that incorporates pre-treatment covariates
- Sun-Abraham: Interaction-weighted estimator that avoids contamination from already-treated controls
- Borusyak-Jaravel-Spiess: Imputation approach that fits time and unit fixed effects only on untreated observations
Fixed effects structure:
- Site fixed effects remove time-invariant differences between locations
- Region × time fixed effects absorb local shocks (fuel prices, transit disruptions, weather, local labor market conditions)
- Optionally employee fixed effects for within-person identification
Core assumptions (state explicitly):
- Parallel trends conditional on covariates
- No anticipation effects (or anticipation limited to a known pre-announcement window)
- No spillovers between sites
- Stable unit treatment value assumption (SUTVA)
3. Parallel trends diagnostics and violations
Validation checks:
- Event-study specification with leads (typically -12 to -1) and lags (0 to +12 or more), normalized at period -1
- Joint F-test that all pre-treatment coefficients equal zero; examine both statistical significance and magnitude
- Randomization inference: Assign placebo treatment dates 6-12 months earlier and test on pre-period data only
- Placebo outcomes: Test on outcomes the program cannot plausibly affect (e.g., engagement metrics for fully remote employees)
If pre-trends diverge:
- Incorporate pre-treatment covariates through doubly robust estimation
- Tighten geographic controls (finer region × time fixed effects)
- Match treated sites to controls on pre-treatment trend similarity
- Apply synthetic difference-in-differences methods
- Report Rambachan-Roth sensitivity bounds showing how large a trend violation would need to be to reverse findings
- Use site-specific linear trends only as a sensitivity check (they can absorb true treatment effects)
Anticipation: If the program was announced before launch, either redefine treatment as the announcement date or exclude the announcement-to-launch window from analysis.
4. Selection bias and time-varying confounding
Sites adopt for reasons correlated with outcomes: long employee commutes, poor public transit, growth trajectories, or proactive leadership. Mitigation strategies:
- Model adoption propensity using pre-treatment covariates: commute distance distributions, transit access scores, headcount growth, baseline engagement levels and trends. Use these in doubly robust estimation and check covariate balance.
- Prefer not-yet-treated controls: Sites that eventually adopt are more comparable to current adopters than never-adopters.
- Measure concurrent interventions: Return-to-office mandates, management changes, compensation adjustments. Include as time-varying controls or exclude affected site-months.
- Avoid post-treatment bias: Never condition on variables affected by treatment (e.g., post-launch headcount). Freeze all covariates at pre-adoption values.
- Heterogeneous effects as validation: Within sites, employees with longer commutes or limited car access should benefit more. Finding larger effects for this subgroup supports causal interpretation since site-level confounders difference out.
- Exploit policy variation: If adoption timing was driven by vendor capacity constraints or budget cycles rather than site conditions, use this quasi-random variation.
5. Standard errors and weighting
Clustering:
- Cluster at the site level since that's the treatment assignment unit; employee outcomes within sites are correlated
- With 1,000+ sites and hundreds treated, asymptotic inference is reliable overall
- For small cohorts, use wild cluster bootstrap for valid inference
- If strong regional shocks exist, consider two-way clustering (site × region-time)
Weighting:
- Employee-weighted ATT: Average effect per employee (useful for total impact calculation)
- Site-weighted ATT: Average effect per location (useful if sites are decision units)
- These diverge if large and small sites respond differently. Choose based on the policy question; typically employee-weighted for aggregate impact assessment. Report both.
- Aggregating to site-month cells with employee counts as weights yields equivalent estimates more efficiently.
6. Sample composition issues
Never-adopters: Valid controls only if comparable. Check covariate overlap and balance. If never-adopters are structurally different (e.g., very small or rural sites), rely primarily on not-yet-treated controls and use never-adopters only in sensitivity analysis.
Late adopters: Valid controls until they adopt, then drop from control group. Long event-time lags are identified only from early cohorts; trim the window where few cohorts contribute. Report which cohorts identify each event-time coefficient.
Site closures: First test whether treatment affects closure probability. If so, closure is an outcome, not attrition:
- Compare closure rates between treated and control groups
- Re-estimate on balanced panel as sensitivity check
- Apply selection bounds (e.g., Lee bounds) if attrition is differential
Treat employee turnover the same way: the pre-treatment cohort approach makes this intent-to-treat; separately analyze effects on retention as an outcome.
7. Robustness checks
- Stacked cohort design: Create separate datasets for each cohort with its clean control group, estimate separately, then pool
- Alternative time windows: Vary the post-treatment follow-up period (6 months, 18 months)
- Alternative outcomes: Check consistency across participation, survey scores, and retention
- Subgroup analysis: Urban vs. suburban sites, large vs. small sites, by baseline engagement
- Leave-one-out: Drop each site or cohort sequentially to check for influential observations
- Trimming propensity extremes: Exclude sites with very low or high adoption probability
- Dose-response: If ridership data exists, instrument for usage with treatment assignment
8. Communicating to non-technical stakeholders
Interpretation framework:
- "The program increased monthly participation by X percentage points (Y% relative to baseline)"
- "This translates to Z additional employees engaging per 1,000-person site each month"
- "Effects ramped up over the first N months and then stabilized"
Uncertainty:
- Report 95% confidence intervals in substantive units
- Visualize with event-study plots showing pre-treatment flatness and post-treatment evolution
- "We're 95% confident the true effect is between [lower] and [upper]"
- Explain the counterfactual: "what would have happened at these same sites without the program, based on comparable sites that didn't yet have it"
Limitations:
- State assumptions plainly: "This relies on treated and control sites following similar trends before the program"
- Show the pre-treatment diagnostic plots as evidence
- Flag any violations and describe sensitivity checks
- Avoid causal language ("the program caused") if assumptions are questionable; use "associated with" and bound the range of plausible effects
Common mistakes to avoid:
- Using TWFE without checking for negative weights under staggered adoption
- Comparing sites that adopted to those that never will, without checking comparability
- Conditioning on post-treatment variables
- Ignoring composition changes in the workforce
- Claiming causal effects without validating parallel trends
- Treating site closures as missing data rather than potential outcomes