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
Horizontal stacked graph and cumulative distribution graph helpHi all, I am new to STATA and I am trying to reproduce these two graphs I made in SAS on here (I kn…
Reverse the scale of yaxis(1) and yaxis(2)Hi everyone, I'm planning to use twoway to draft a plot. We have two Y axis, one is Z-score (ranged…
Calculate Sample Size for a Non-inferiority trialHello all, Apologies in advance if this is too basic. I am trying to calculate the sample size for a…
Predict value using xtabondHello everyone, I am trying to use GMM to run a model and predict the dependent variable. The mode…
Two part model (with gsem)Hi, I was wondering how to fit a two part multilevel model using gsem. The first part is a binary m…
Subscribe to:
Post Comments (Atom)
0 Response to Diff in Diff by Hand and Stata
Post a Comment