psns {esaps} | R Documentation |
Party System Nationalization Score
Description
Party System Nationalization Score Mainwaring and Jones (2003) and Chhibber and Kollman (2004)
Usage
psns(tidy_data, method, pns = FALSE, scale = 100)
Arguments
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 |
Value
if pns = FALSE,
return data.frame.
if pns = TRUE
, return a list with two data.frame.
list[[1]]
PSNS: Party System Nationalization Scorelist[[2]]
PNS: Party Nationalization Score
Author(s)
Nicolas Schmidt nschmidt@cienciassociales.edu.uy
Examples
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)
psns(tidy_data = votes, method = 1, pns = TRUE)