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
graph for the dynamic treatment effect using did_multiplegt packageHi, I am trying to draw a graph like the following using did_multiplegt package: Array But in fact,…
Doubt on data structure/fixed effectsDear Statalist users, I could really use some advice on how to handle the data I have for a piece o…
metaprop command: where is "logit" option?Dear all, I am writing to ask if any of you have ever used the "metaprop" command for a Meta-analysi…
GMM estimation problem and f-statisticHI to everyone! I´m working on gmm model. I have stata 14. My data has 32 individuals and 13 years …
Convergence in SEMI was having trouble getting a multiple indicators, multiple causes model to converge, so I simplifi…
Subscribe to:
Post Comments (Atom)
0 Response to Repeated cross sections
Post a Comment