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
Related Posts with Repeated cross sections
What type of model(s) can I use for my (definitely not linear) dependent variable?I have dependent variable, measured with a range of 0-100% (nevertheless it takes on fairly few vari…
Creating new variable as the sum of another variableHi, Apologies for the vague title. I am trying to create a new variable which is the sum of the 'ssq…
changing the color of just one bar in a single category bar chartIm trying to generate a bar chart with one of the bars representing the average value across all IDs…
Performing regression analysis by IDDear all, Sorry I'm new to the forum, although I have read many posts, I was not able to find the so…
Heteroscedasticity + Multicollinearity in panel dataHello, I am in the proceedings of my bachelor thesis and I collected a panel data set of 22 countrie…
Subscribe to:
Post Comments (Atom)
0 Response to Repeated cross sections
Post a Comment