Hi,
I have a dataset of president's and their approval ratings. I would like to control for the entity fixed effects of every administration when I analyze the data. So, I need to divide the data into different administrations using a dummy variable. For example, President Obama's approval ratings need to be divided between his 2 terms: the 1st one from 2009q1 to 2012q4 and the 2nd one from 2013q1 to 2016q4. My date variable is in the format %tq (displayed as 2008q1). I am trying to create a dummy variable that is equal to 1 for the duration of every president's term.
Thanks a lot,
Kanishk
I have a dataset of president's and their approval ratings. I would like to control for the entity fixed effects of every administration when I analyze the data. So, I need to divide the data into different administrations using a dummy variable. For example, President Obama's approval ratings need to be divided between his 2 terms: the 1st one from 2009q1 to 2012q4 and the 2nd one from 2013q1 to 2016q4. My date variable is in the format %tq (displayed as 2008q1). I am trying to create a dummy variable that is equal to 1 for the duration of every president's term.
Thanks a lot,
Kanishk
Comment