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
Obtain same results with regress and rifhdregHi everyone, I am trying to make a RIF regression analysis using an inequality index that uses two…
Coefplot: Displaying each level of a factor variable in one plotGreetings: I am trying to visualize the data for logistic regressions. My independent variable of i…
xtlogit and excluding ineligible participantsHi Listers, I have collected data of people who want to join the gym at 4 regular intervals. At eac…
Is there a way to use panel data rolling regressions with driscoll-Kraay standard errors?Hello to everyone in this forum, I wonder if there is a way to add Driscoll-Kraay standard errors t…
Counting every pair combination on a datasetDear Statalist, Suppose you have the following dataset: City_1 City_2 Flow Pair_ID AAA BBB 456…
Subscribe to:
Post Comments (Atom)
0 Response to Diff in Diff by Hand and Stata
Post a Comment