Hello,
I need to put several political parties together and observe the dissimilarity between certain groups. GNPP stands for Governing Non Premiership Party and PP for Premiership Party. Using the commands below I receive "parentheses do not balance". The partys with the party variables 41111, 41112, 41113, 41521 are GNPP parties and 41320 and 41420 are PP parties. I use MPDataset_MPDS2017b_stata14.dta.
egen DI = rowmean(mdiffper*)
gen eyear = trunc(date/100) // election year
twoway (connected DI eyear if party == 41111 | party == 41112 | ///
party == 41113) | party == 41521 ///
(connected DI eyear if party == 41320 | party == 41420 | ///
title("Party Dissimilarity Index") xtitle("election year") ///
legend(label(1 "GermanGNPP") label(2 "GermanPP")
this results in "parentheses do not balance" .
I need to put several political parties together and observe the dissimilarity between certain groups. GNPP stands for Governing Non Premiership Party and PP for Premiership Party. Using the commands below I receive "parentheses do not balance". The partys with the party variables 41111, 41112, 41113, 41521 are GNPP parties and 41320 and 41420 are PP parties. I use MPDataset_MPDS2017b_stata14.dta.
egen DI = rowmean(mdiffper*)
gen eyear = trunc(date/100) // election year
twoway (connected DI eyear if party == 41111 | party == 41112 | ///
party == 41113) | party == 41521 ///
(connected DI eyear if party == 41320 | party == 41420 | ///
title("Party Dissimilarity Index") xtitle("election year") ///
legend(label(1 "GermanGNPP") label(2 "GermanPP")
this results in "parentheses do not balance" .
Comment