Hello everyone.

Hope you all are well.

I am looking at this regression and dataset which was used in the book "Causal Inference: The Mixtape" by Scott Cunningham

In this book there is a diff n diff regression being used and it has the following dataset and code:

Code:
use https://github.com/scunning1975/mixtape/raw/master/abortion.dta, clear

xi: reg lnr i.repeal*i.year i.fip acc ir pi alcohol crack poverty income ur if bf15==1 [aweight=totpop], cluster(fip)
However, I am trying to replicate this using xtreg (mainly because xi: is outdated) but have been unsuccessful at it.

Assistance will be highly appreciated.