Hello everyone,
I have a dataset with Italian data on electoral outcomes. My dataset contains information about all the election years (from 1987 to 2013), provinces, municipalities, eligible voters, actual voters, parties, and votes per party. My goal is to have the dataset at the province level with the votes for the political parties in the election years, together with all the eligible and actual voters.
I, therefore, used this command: collapse (sum) votes eligibles voters, by (province party year).
It works but I obtain different numbers of voters for the same province in the same year...which is wrong.
Where do you think I am doing wrong?
Thank you in advance for your help!!
Related Posts with Problems with collapse command
Cross-sectional regressionHello guys, I was wondering if anyone had experience with such regressions. I have a panel data. W…
HH dataHello please, am new with stata. i want to do household analysis, please what is the way forward …
Merge weekly and daily dataHi everyone, I am new here so I will try my best to make my question as clear as possible. Hope you …
How to compare two coefficients over 2 equationsHello good people, I have a question regarding my approach of analyzing data for a project. # I have…
Hierarchical Cluster Analysis (Centroid Linkage): currently can't handle dendrogram reversalsHello Everyone, I am having an issue displaying a hierarchical cluster analysis dendrogram using ce…
Subscribe to:
Post Comments (Atom)
0 Response to Problems with collapse command
Post a Comment