Hello Statalist.
I am working with a big panel-dataset tracking political regime changes. I would like to use fixed effects in my model, using the 'xtmlogit' command, however that requires me to xtset my data. As my data example shows, there are a few times where there is more than one regime change pr year, which of course means I can't xtset my data without removing "duplicates". Is there any way around this, or do you have any ideas doe other ways to go about this, as I would very much like to avoid having to remove these instances.
clear
input double(country_id year regchange)
3 1900 0
3 1901 0
3 1902 0
3 1903 0
3 1904 0
3 1905 0
3 1906 0
3 1907 0
3 1908 0
3 1909 0
3 1910 0
3 1911 1
3 1911 0
3 1911 1
3 1912 0
3 1913 0
3 1913 1
3 1914 0
3 1914 1
Thanks in advance.
I am working with a big panel-dataset tracking political regime changes. I would like to use fixed effects in my model, using the 'xtmlogit' command, however that requires me to xtset my data. As my data example shows, there are a few times where there is more than one regime change pr year, which of course means I can't xtset my data without removing "duplicates". Is there any way around this, or do you have any ideas doe other ways to go about this, as I would very much like to avoid having to remove these instances.
clear
input double(country_id year regchange)
3 1900 0
3 1901 0
3 1902 0
3 1903 0
3 1904 0
3 1905 0
3 1906 0
3 1907 0
3 1908 0
3 1909 0
3 1910 0
3 1911 1
3 1911 0
3 1911 1
3 1912 0
3 1913 0
3 1913 1
3 1914 0
3 1914 1
Thanks in advance.

Comment