Party System Nationalization Score Mainwaring and Jones (2003) and Chhibber and Kollman (2004)
psns(tidy_data, method, pns = FALSE, scale = 100)
tidy_data | data.frame that contains the following variables with these names:
If the data is not structured in this way you can order it with: |
---|---|
method | Method to calculate Party System Nationalization Score:
|
pns | by default it is |
scale | By default it is |
if pns = FALSE,
return data.frame.
if pns = TRUE
, return a list with two data.frame.
list[[1]]
PSNS: Party System Nationalization Score
list[[2]]
PNS: Party Nationalization Score
Nicolas Schmidt nschmidt@cienciassociales.edu.uy
votes <- data.frame(election = rep(2000,4), unit = rep(c("District_1", "District_2"), each = 2), party = rep(c("party_A", "party_B"), 2), votes = c(0.60,0.40, 0.30, 0.70), votes_nac = rep(c(0.55,0.45),2) ) psns(tidy_data = votes, method = 1)#> election psns #> 1 2000 84.695psns(tidy_data = votes, method = 1, pns = TRUE)#> $PSNS #> election psns #> 1 2000 84.695 #> #> $PNS #> party election pns #> 1 party_A 2000 0.833 #> 2 party_B 2000 0.864 #>