There is an issue on chapter 15, in the following paragraph
To do this with linear regression, we will find the weight using OLS. We will minimise the square distance between the weighted average of the units in the donor pool and the treated unit for the pre-intervention period.
In fact, OLS wouldn't work because you have 38 states and only 19 years. You use the default sklearn.linear_model, which applies regularization by default. If you don't know this, it probably means that a lot of the time you think you are doing OLS you actually are getting estimates that have been shrunk to zero instead.
There is an issue on chapter 15, in the following paragraph
In fact, OLS wouldn't work because you have 38 states and only 19 years. You use the default
sklearn.linear_model
, which applies regularization by default. If you don't know this, it probably means that a lot of the time you think you are doing OLS you actually are getting estimates that have been shrunk to zero instead.