scunning1975 / mixtape

Data and Program files for Causal Inference: The Mixtape
Other
385 stars 217 forks source link

minor error in abortion_dd.R #11

Closed ianschmutte closed 3 years ago

ianschmutte commented 3 years ago

Love these materials. I was just working through them and noticed that in abortion_dd.R I needed to change lines 28 and 29 to

sd = reg$std.error[-1:-25],
mean = reg$coefficients[-1:-25],

Currently, they run [-1:-75]

scunning1975 commented 3 years ago

Fixed this. Thanks Ian.

erauld commented 3 years ago

Agree, excelent material. Thanks Scott.

In my case the previous version worked fine. In fact, to make the tibble the coeffs and sd needed are [-1:-75]:

Am I right?