This post shows how to implement the difference-in-differences method design in R. The data is taken from Marcus, Jan, Thomas Siedler, and Nicolas R. Ziebarth. 2022. “The Long-Run Effects of Sports Club Vouchers for Primary School Children.” American Economic Journal: Economic Policy, 14 (3): 128-65.