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
Random forests and neural nets in Stata (with Python integration)Hey all, I wrote a couple Stata packages to do regression or classification with random forests and…
Testing and addressing potential attrition bias in panel dataDear all, I am using household panel data across three waves (2011, 2013, and 2015). Although the v…
How to dissect multiple variables in one column to separate columnsHello good Sir/Madam, I am currently working with a list of corporations and their CashFlowTypes, a…
Obtain village name form longitude and latitude & coordinatesHi Statalist! This is my first time dealing with GPS dataset. What I would like to do is to get the…
Finding R squared and Adjusted R squared values on xtregHi Everyone, I am conducting research on panel data, set with xtset command on STATA. xtset compan…
Subscribe to:
Post Comments (Atom)
0 Response to Difference in Difference analysis - how to create a group variable
Post a Comment