Hi everyone,

I'm an undergrad and trying to understand what Stata does when I run a diff-in-diff command (TWFE). I have the following data:

Treated (Before): 50
Treated (After): 25
Untreated (Before): 55
Untreated (After): 100

I'm running a simple TWFE estimation in Stata (Y = B0 + B1Treated + B2After +B3Treated*After + error). How do I get this result by hand in this simple example? I'm trying to understand what's going on in Stata when I run this diff-in-diff so that I can understand more complicated examples.

Thank you!