Hello,
I am using the manifesto project data to get indicators for countries' environmental interests (per501), as well as the Right-Left Index (RILE). I have dropped observations before my period of interest, and for most countries I am left with two elections. There is one observation for every party in every country. It's specified how many seats they have, and what percent of the votes (pervote) each party received. I want to collapse the data into RILE and environmental interest by country, but also by these two elections. Furthermore I want the mean that comes out to be weighted by the percentage of votes each party received.
I don't really understand the stata guide I get from /help, but I did "collapse per501 rile [w=pervote], by(country date)"
To check whether the weighted mean was correct, I calculated the first "date" of Sweden by hand for environment (per501). Stata gives me the value 7.09, where as my calculation was at 5.7. I assume this flaw could be due to the numbers that are missed, as I rounded up most values, but it still seems like a but too big of a difference.
Am I doing it correct or should I be doing something else?
Any help or tips would be greatly appreciated!
I am using the manifesto project data to get indicators for countries' environmental interests (per501), as well as the Right-Left Index (RILE). I have dropped observations before my period of interest, and for most countries I am left with two elections. There is one observation for every party in every country. It's specified how many seats they have, and what percent of the votes (pervote) each party received. I want to collapse the data into RILE and environmental interest by country, but also by these two elections. Furthermore I want the mean that comes out to be weighted by the percentage of votes each party received.
I don't really understand the stata guide I get from /help, but I did "collapse per501 rile [w=pervote], by(country date)"
To check whether the weighted mean was correct, I calculated the first "date" of Sweden by hand for environment (per501). Stata gives me the value 7.09, where as my calculation was at 5.7. I assume this flaw could be due to the numbers that are missed, as I rounded up most values, but it still seems like a but too big of a difference.
Am I doing it correct or should I be doing something else?
Any help or tips would be greatly appreciated!
Comment