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
Choosing the right matching technique for conducting a diff in diff analysisHello everyone, I am struggling with my project and hope to get some advice on the best way to proc…
Manager-firm matched sampleDear all, I have the following problem and would be very happy if you could help me out! I downloa…
Coefficient Interpreation using proportionsHi everyone, I am struggling with the interpretation of my regression results. I use stock returns …
Identifying first non-missing value based on another variableHi everyone, I'm having a long panel data set with 1250 individuals (identified by case) and inform…
Modify additional key to legend, not ex-post (graph editor)Dear Statalists, I plotted some impulse response functions and I had to combine two graphs and thei…
Subscribe to:
Post Comments (Atom)
0 Response to Repeated cross sections
Post a Comment