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
Problem with xtunitroot not recognizing variableDear Statalist forum members, I am interested in performing a test for unit roots in my panel datas…
Help extracting info. from an inconsistent formatted date variable Hello Statalist members, This is my first post, so here it goes... Below I have provided a sample…
Question on Stata's svy: with suestHi Forum, I am using the 2013 Canadian General Social Survey, which allows its data to use the svys…
Clustering TendencyDear Stata Users, I want to evaluate the clustering tendency of my data set consisting of the observ…
Reshaping multiple variablesDear reader, I have a dataset with many variables for different key statistics in a company that st…
Subscribe to:
Post Comments (Atom)
0 Response to Difference in Difference analysis - how to create a group variable
Post a Comment