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
Nested forvalue loops - referring to previous macros in a relevant macroGood afternoon. Could anyone help me decipher what syntax error I am producing in the below command…
T Tests and Wilcoxon Tests export to MS Word or MS ExcelHello Members I had been working on EViews for some time, I shifted to Stata now, since I am new, I…
multicollinearity test variables in a panel dataHi, how can I run a multicollinearity test in Stata 12 between variables in a panel data? Thanks! …
Solve Macroeconometrics Model and ForecastI am trying to solve a macroeconometrics model of my country using STATA. Model has 7 endogenous var…
Complex Reshape Long to WideDear Stata Users I am dealing with a complex reshape wide problem. Here is an input data: Code: …
Subscribe to:
Post Comments (Atom)
0 Response to Repeated cross sections
Post a Comment