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
To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:
Also, please narrow down the scope of your question and try changing your topic's title accordingly. We like to keep things tidy around here so we like to have one well defined question per topic, but you can make as many questions as you need.