Hi there,

I have a panel dataset on conflict events, rainfall deviation, GDP and some more variables. I need to do a fixed effects regression on the data.

I perform the following command: xtlogit events Rainfall_deviation Polity2 GDP log_pop year_dummy*, fe

But then I get the following outcome; outcome does not vary in any group r(2000).

I have done 'xtset countryside year' before running the fixed effects, but then I get the error 'repeated time values within panel'. Then I tried xtset Country_year (this is a variable that combined the countryname and year in one) and this doesn't give me an error, but I am not sure if that is the right thing to do.

So after I ran the 'xtset Countryside_year' command, I do the xtlogit command mentioned above when I get the r(2000) outcome. What am I doing wrong?

Also, I am replicating data and their do file says they use the following command: 'xtnbreg events Rainfall_deviation Polity 2 GDP log_pop year_dummy* if countrycode~=520, fe'. I do not understand why they include this specific countrycode at the end, as you need to do the regression on the entire panel and they use 'xtnbreg' instead of 'xtlogt'. What is the difference between these two?

Thank you in advance!