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
Choose Referans CatogryHello, I m working on a panel with GMM. I want to choose the reference category by myself. However, …
Generating groups by sets of consecutive numbersI am trying to create a new id variable in a dataset by id and a set of consecutive numbers. For exa…
Using statplot to plot averages of one variable, grouped by a list of different variablesHello, Apologies for the potentially confusing title. This is my first post on Statalist and I coul…
Getting formula rightDear all, I want to calculate the following decomposition below, which synthesizes how much of the …
Fe glsHello, My data is suitable for FE model but with heteroscedasticity and autocorrelation, I want to c…
Subscribe to:
Post Comments (Atom)
0 Response to Diff in Diff by Hand and Stata
Post a Comment