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
Covert Numerical Dates to Stata DatesHi, I have the dates in the following (not string) format (month is followed by date and year respec…
Kaplan Meier Turnbull Analysis for Willingness to PayHi all, I am a third year undergraduate conducting my dissertation and need some technical help on …
Filling missing values between two markersDear Statalist, I am trying to fill missing values between two markers (start marker and end marker…
Ordered Probit and IVHi, in my model, my dependent variable is ordered and there is also a problem of endogeneity on it. …
how to change a label value name?Hi Statalists- I wanted to change the name of a label value, but Stata does not allow me to change …
Subscribe to:
Post Comments (Atom)
0 Response to Fixed effects on panel data
Post a Comment