Block 5: Linear regression with uncertainty

Week 12 · Uncertainty II · Imai §7.3 · about 4 min

NoteHow this works

Run each cell with Run Code, look at the output, then answer the question at the end of the block. Every cell is editable; Start Over resets it. Errors are information: read them.

India: villages in which the position of village council head (Pradhan) was randomly reserved for a woman. water = number of new or repaired drinking-water facilities; reserved = 1 if reserved for a woman.

1. The regression and the group means

2. summary() and confint()

Standard error, t-value and p-value of reserved, and its 95% CI.

Conclusion: Does the 95% CI for the reserved coefficient exclude 0?
The intercept (14.7) is the mean in unreserved villages; the slope (9.25) is the difference in means. Estimate 9.25 +- 1.96 x 3.95 gives [1.5, 17.0]; p = 0.020. Because assignment was random, we read this as an effect, but the data are consistent with anything from a small to a large effect.