Hi there,
first off, I spend quite some time searching for an answer for my (I guess) rather basic question but couldn't find something fitting. I'm currently writing my bachelor thesis and I am grateful for any help.
I'm trying to get the Ethnic Power Relations (EPR 2014) dataset into a form I can merge it with my master dataset. My problem is that there are multiple observations for every ethnic group per country, but only over a certain time period. My master-set variables range from 1988 to 2012 so I already adjusted the periods. I dropped some variables to fit everything of interest into one screenshot so don't be confused. The multiple observations per country/period actually contain the respective ethnic groups.

My question is how to generate new observations for every year between "from" and "to". The "powersize" etc. variables only change with the periods, not yearly. Therefore the new observations should include the values for the respective "from"-"to" period.
If there is no way to do so, is there any form of the "merge" command that matches every e.g. 1988-2008 observations to every fitting observation in the master dataset?
Thanks in advance and best regards
Dorian
first off, I spend quite some time searching for an answer for my (I guess) rather basic question but couldn't find something fitting. I'm currently writing my bachelor thesis and I am grateful for any help.
I'm trying to get the Ethnic Power Relations (EPR 2014) dataset into a form I can merge it with my master dataset. My problem is that there are multiple observations for every ethnic group per country, but only over a certain time period. My master-set variables range from 1988 to 2012 so I already adjusted the periods. I dropped some variables to fit everything of interest into one screenshot so don't be confused. The multiple observations per country/period actually contain the respective ethnic groups.
My question is how to generate new observations for every year between "from" and "to". The "powersize" etc. variables only change with the periods, not yearly. Therefore the new observations should include the values for the respective "from"-"to" period.
If there is no way to do so, is there any form of the "merge" command that matches every e.g. 1988-2008 observations to every fitting observation in the master dataset?
Thanks in advance and best regards
Dorian
Comment