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!
Related Posts with Fixed effects on panel data
Comparing data among two string columnsDear Statalist members, I want to identify the political connections of the firms. For this I have c…
2SLS in non-linear models with count endogenous explanatory variableGreetings everyone, I specify two models in my study with two different dependent variables; one of…
Is Mata at par with C in terms of speed?Since there is no discussion on this topic, I am posting this question here. Is Mata at par with C i…
How to get sum of categoryHi everyone, I use id and type to generate dummy_1~dummy_5 My data looks like this: id type dumm…
Problem with macro in forvaluesHi! I'm trying to construct the variables for exporter-time and importer-time fixed effects for our …
Subscribe to:
Post Comments (Atom)
0 Response to Fixed effects on panel data
Post a Comment