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
Count function using stringDear All, I am using firm-level data to gather information on the number of products produced withi…
Dividing data into periods and then groupsHi! I want to divide my panel data into different cross-sectional data of each group, and then divi…
Multiple linear regression - Cross-sectional data - Percentage as response variableDear community, I'm trying to run a multiple linear regression with stata 16 using cross-sectional …
Calculating egfr using creatinineDear users Can you please someone share their experience of using the stata module written by phil …
Replace stringsHi all, I have a database as the following: Code: * Example generated by -dataex-. To install: ss…
Subscribe to:
Post Comments (Atom)
0 Response to Diff-in-diff estimation in stata
Post a Comment