Hello everyone,
For my Master's thesis I have a panel data set comprising 55 periods (1960 to 2014) and 46 Asian countries. Below you'll find an extract from my dataset:
The topic is the relationship between climate change and civil conflict. To that end I perform the following regression:
where iccountry* and icyear* are country-specific fixed effects and time-trends respectively.
As a robustness test I now want to perform the exact same regression but for different time periods covering thirty years i.e. 1960 to 1989, 1961 to 1990 etc. To do so, I chose the following command:
While this works fine, Stata refuses to execute the same command when I change the years, for example when I use 1961 and 1990 instead of 1960 and 1989. This would not be as much of a problem if Stata at least gave me an error message. However the only thing it does is reproduce my command in the result window without any further information.
I have checked the manual as well as the forum but could not find anything related to this problem.
As an alternative I also tried the -rolling- command with a thirty-year window but I run into problems there too. But that's the topic for another thread.
Has anybody run into the same problem before and knows a solution?
I thank you for your consideration.
For my Master's thesis I have a panel data set comprising 55 periods (1960 to 2014) and 46 Asian countries. Below you'll find an extract from my dataset:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str20 country int year byte confrontation_incidence float(temp temp_lagged rainfalllog rainfall_laggedlog) "Afghanistan" 1960 0 12.1 12.5 2.5701926 3.130655 "Afghanistan" 1961 0 12.6 12.1 2.510277 2.5701926 "Afghanistan" 1962 0 12.2 12.6 2.3968964 2.510277 "Afghanistan" 1963 0 13.2 12.2 2.541579 2.3968964 "Afghanistan" 1964 0 11.6 13.2 2.5166676 2.541579 "Afghanistan" 1965 0 12.5 11.6 2.5684364 2.5166676 "Afghanistan" 1966 0 12.8 12.5 2.463893 2.5684364 "Afghanistan" 1967 0 12.2 12.8 2.585912 2.463893 "Afghanistan" 2013 1 13.9 13 2.5264685 2.6026025 "Afghanistan" 2014 1 13.7 13.9 2.4852955 2.5264685 "Armenia" 1991 0 7.2 . 2.711723 . "Armenia" 1992 0 6 7.2 2.778658 2.711723 end
The topic is the relationship between climate change and civil conflict. To that end I perform the following regression:
Code:
encode country, gen(country1) xtset country1 year regress confrontation_incidence temp temp_lagged rainfalllog rainfall_laggedlog iccountry* icyear*,vce(cluster country1)
As a robustness test I now want to perform the exact same regression but for different time periods covering thirty years i.e. 1960 to 1989, 1961 to 1990 etc. To do so, I chose the following command:
Code:
if inrange(year,1960,1989) regress confrontation_incidence temp temp_lagged rainfalllog rainfall_laggedlog iccountry* icyear*,vce(cluster country1)
I have checked the manual as well as the forum but could not find anything related to this problem.
As an alternative I also tried the -rolling- command with a thirty-year window but I run into problems there too. But that's the topic for another thread.
Has anybody run into the same problem before and knows a solution?
I thank you for your consideration.
Comment