InteractiveAccessibility not checkedPublished

Which Effect Does the Regression Estimate? Controlling for a confounder and the ATE, ATT and ATC

By Alexis Diamond · Statistics · causal inference · Undergraduate · Simulation of a known property · version 2

A hundred farmers, an irrigation pump, and the coefficient you get when you control for wealth: does the regression estimate the ATE, ATT or ATC? This revision makes every control shared state so breakout teammates see the same screen.

Report this artifact

Reports are anonymous. The artifact stays up until we've checked it.

Licence: CC BY 4.0

Assumption ledger

  • parameter100 farmers; the number of rich farmers is chosen (default 50)
  • distributionY0 = 10 + 5·rich + u, with u ~ Normal(0, 1) from a seeded generator; units are $1,000s
  • parameterY1 = Y0 + the group's effect (defaults +6 rich, +0 poor); every farmer in a group has the same effect
  • simplificationPumps go to exactly round(rate × group size) farmers per group, so wealth is the only confounder
  • simplificationTrue ATE, ATT and ATC use both potential outcomes; estimates use only the observed harvest
  • distributionThe regression is OLS of observed harvest on pump and rich with conventional SEs; the bar shows ±1.96 SE
  • parameterRegression weight for a group = n·p·(1−p), normalized to sum to 1
  • dataNo external data; the noise is generated in the browser, so estimates differ slightly from the R workbook (set.seed(104)); true ATE, ATT and ATC match it exactly

Breakout check

Not checked yet.

Cite this

Alexis Diamond (2026). Which Effect Does the Regression Estimate? Controlling for a confounder and the ATE, ATT and ATC [Interactive model], version 2. Ideas at Play. https://ideasatplay.org/play/which-effect-does-the-regression-estimate-controlling-for-a-c8eb87?v=2 (CC BY 4.0)

History

  1. v2Every control (pump-rate sliders, the break button, effect sliders, prediction, fit, reseed, reset, written answers) now goes through one shared state with onChange, and getState/setState/controls/responses cover them all; projector mode stays per screen. (generated, Oct 19, 2026)current
  2. v1Imported; lineage before import is not available. (imported, Oct 19, 2026)View

Comments

No comments yet.

Sign in to comment or like.