I think my question is pretty straightforward. I'd like to know what my "Group" is for a difference in differences analysis.
Study: Newspaper articles from 1985-2017 were categorized as either in favor, against, or neutral toward a specific topic. These are weighted and graphed.
Array
There is a clear divergence between the Favor and Against variables that happen roughly around 2007 or 2008. I would like to test this using a treatment variable defined as "before 2008" and "2008 and on," Treatment 0/1. The time is Year. I've added "the mean of the Favor and Against variables" for the control variable, Control.
This is a mock-up of my data:
Array
The unit of analysis is newspapers for each year.
But what's up with the Group? I know it's supposed to be categorical ... but what am I supposed to put?
The syntax I have for the command is didregress (Favor) (Treatment), group(?????) time(Year)
Any thoughts on what my Group should be?
Thank you!
Related Posts with Difference in Difference analysis - how to create a group variable
Reshape errorHi all, I need help in reshaping long (year2007-year2012). The desired outcome would be something l…
est tab marginsDear all, I cannot have the results I want in the est tab output using : Code: quietly probit Y i.…
Converting ISCO1988 4 digit codes to ISCO2008Hi, I am lost in using iscogen. I need to convert an old dataset isco88 4 digits occupation classifi…
Help with ICC's of vertical jump measuresI am trying to run a simple reliability analysis on a dataset. There is one rater (a vertical jump m…
Twoway scatter plotHello, I hope it's a relatively simple question, but I don't know how to do it. I want to make fou…
Subscribe to:
Post Comments (Atom)
0 Response to Difference in Difference analysis - how to create a group variable
Post a Comment