hi, for my bachelor thesis I want to run a regression by seeing if a terrorist attack has any effect on economic growth. I have two datasets, 1 is with quarterly data of unemployment rate, investment rate, GDP growth, economic sentiment and consumer confidence of 27 countries. Another dataset are all the terrorist attacks, succesfull and unsuccesful in these 27 countries, and the weapon used, target, and attack type.
For my dependent variable i want to use GDP growth, for my independent variables i want to use unemployment rate, investment rate, consumer confidence and eocnomic sentiment. as my dummy variable i want to use the succesfull atack with three years before that period and three years after the period. i also want to use the type of the attack, target, and weapon used as my dummy variables.
In R, i tried to organize these two datasets into one, which gives me an error. can someone help me with this and with my regression?
Error in data.frame(alledatagoed, GTD_europe) :
arguments imply differing number of rows: 2700, 5301