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
calculate the difference between a date n and the first date of a long setPlease I need to calculate the difference between a date n and the first date of a long set. I do no…
How can I extract a part of a string variable which contains zipcode information?Hello, I'm working with Massachusetts zip code data and there are 3 kinds of formats the data is cur…
Calculate daily stock return relative to peak in the last 6 month periodI have daily stock market data and would like to calculate the return for each observation relative …
Return for previous year with daily dataHi everybody, i have panel data with gaps in the time variable (weekends, holidays). I want to calc…
Margins after menbreg with exposureHello, I am estimating the following multilevel negative binomial model with an exposure term. Co…
Subscribe to:
Post Comments (Atom)
0 Response to Diff in Diff by Hand and Stata
Post a Comment