Hi everybody,
I have a dataset where each year parties (from different countries) running for elections are evaluated and assigned a score based on their programme. So the dataset contains repeated cross sections.
I want to run a regression with year fixed effects and countries fixed effects, and I am using the following code:
xtset country_num year
xi: reg score i.year i.country_num
where country_num is the variable identifying the country.
I found a hint to write it in an old post, but I wanted to be sure it works also with repeated cross sections (and not just with panel data). Also, if it's not the right code, which commands should I use?
Thanks in advance