Hi everyone!
I am trying to work with data from Eurobarometer on the last European Elections, but there is something weird in the way the original csv data is imported into stata: as in the attached picture, I have the variables party_id and votes_percent so that e.g. Pd obtained 22.74% of the total vote. However, if I try to tabulate votes_percent, the vote share (which should be the frequency attached to each party) appears as the value label. I have tried recoding the data in many different ways but none seems to work! I would need a single variable with the names of the party as value label and the party vote percent as frequency of that variable.
Would anyone be able to help?

I attach the original csv in case you need it (dataex is not working, I am very sorry). Let me know if you need any more information on my side!
results-parties-it.csv
I am trying to work with data from Eurobarometer on the last European Elections, but there is something weird in the way the original csv data is imported into stata: as in the attached picture, I have the variables party_id and votes_percent so that e.g. Pd obtained 22.74% of the total vote. However, if I try to tabulate votes_percent, the vote share (which should be the frequency attached to each party) appears as the value label. I have tried recoding the data in many different ways but none seems to work! I would need a single variable with the names of the party as value label and the party vote percent as frequency of that variable.
Would anyone be able to help?
I attach the original csv in case you need it (dataex is not working, I am very sorry). Let me know if you need any more information on my side!
results-parties-it.csv
Comment