Hi Mr. Clyde Schechter,
I am working with a panel dataset containing the 50 states (+D.C) containing information the states' stress abstinence policy for teenagers for the years 2003 to 2012. I need help on how I can create 1. variable indicating the control and treatment groups and 2) pre and post-treatment (pre-being before the stress abtsinence policy was enacted, and post-being years after the enactment)so that I can carry out a difference in difference estimation in Stata. I already have a variable that says stress abstinence (equal to 1 for stress, and 0 elsewhere).
I'd appreciate any help. Thank you.
Related Posts with Diff-in-diff estimation in stata
Import multiple CSV filesHi I am trying to import multiple CSV files in a foreach loop. I saved the filenames in the local n…
Reproducing "estat trendplots" linear-trends modelHello Statalist community, I am doing an analysis using a diff in diff methodology. As I use Stata …
How to adjust the colour of event plot ?When using the event_plot command, my code is Code: event_plot, alpha(0.01) default_look graph_opt…
help in generating count variableI am working on World Value Survey dataset. It consists of 5 waves and multiple countries in each wa…
How to get Durbin-Watson stat in GMM regressions?Dear statalist, I am running GMM regressions with robust HAC matrix and standard errors and I would…
Subscribe to:
Post Comments (Atom)
0 Response to Diff-in-diff estimation in stata
Post a Comment