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!
Related Posts with Diff in Diff by Hand and Stata
Appending datasets by keeping the common variabels onlyHi, I want to append datasets for various countries, each of which contains variables that others do…
Replace missing values by system-missing '.' if label value is "Manquant"Hello, I have a survey where most variables have a different code for missing values, I need to uni…
Creating categories and line plotsI would like to create 3 categories -- US, Non-US, and Non-US Developed -- using the variable countr…
ARDL short run and long run InterpretationHi everyone, This is the first time I use Stata for my paper so I am confused a lot. I’m doing my re…
Can I have two lines and one histogram in the same graph?Hi all, I would like to draw a graph with three information: 1. Age on y-axis(1) 2. Gender on y-axi…
Subscribe to:
Post Comments (Atom)
0 Response to Diff in Diff by Hand and Stata
Post a Comment