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
SUCRA in Stata 16Dear all, I have noticed that the SUCRA command for network meta-analysis is not working in Stata 1…
Specifying the linear predictor for random intercept model on panel data.Dear Stata Community, I am running a random intercept model on a longitudinal dataset where I am in…
Choosing a control condition in Interrupted time seriesDear colleagues how can I choose the best control condition in Interrupted time-series among the pos…
identifying follow-up dates closest to a certain valueHello. I have a dataset with multiple follow-up dates (fu1, fu2 etc.) and corresponding morbidity s…
trade structural gravity equation; instruments; ppmlhdfeI work with trade data: 75 importers, 75 exporters; 2004-2018 period, six-digit HS Industries (5219)…
Subscribe to:
Post Comments (Atom)
0 Response to Diff-in-diff estimation in stata
Post a Comment