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
Create multiple observations from a current one considering a specific variableI have a set of companies with the date they were founded and the date they were acquired by other c…
Picking initial log of value added per worker per country in their initial yearHi, I am trying to figure it out how to set up Stata to pick the first log of real value added per …
Is there any way we could permanently set the graphregion(fcolor(white))?I like white plotting background. So, to make it white, I have to set the graph region color option …
Why trend is important in AMG and CCEMG estimators?Dear Statalist I read many papers estimate the CCEMG and AMG using the command of xtmg they add tre…
GamHello I am not able to get GAM to work anyone has advice on how to download GAM? Thank you …
Subscribe to:
Post Comments (Atom)
0 Response to Difference in Difference analysis - how to create a group variable
Post a Comment