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
repeat ineqdeco routine for several countriesHi, I need to compute overall theil index, within and between decomposition and inequality for subgr…
Using MICE wellI have an epidemiological data set and am interested in the association of exposure to cigarette smo…
Problem using Sampling Weights for different Survey YearsDear Statalist Users, I am analysing Panel Data at the individual level in 3 Survey Years: 1992, 20…
Merging two datasets one with dimensions ijt and other with dimensions jktDear Statalist, I have two datasets on conflict that I want to merge but I don't know which merge f…
Fill in missing value in panel based on preceding & following valuesHi Statalist I have a panel of the following structure . list, sepby(Id) +--------------------+ |…
Subscribe to:
Post Comments (Atom)
0 Response to Fixed effects on panel data
Post a Comment