psns: Party System Nationalization Score

Description Usage Arguments Value Author(s) Examples

View source: R/psns.R

Description

Party System Nationalization Score Mainwaring and Jones (2003) and Chhibber and Kollman (2004)

Usage

1
psns(tidy_data, method, pns = FALSE, scale = 100)

Arguments

tidy_data

data.frame that contains the following variables with these names:

  • election: year of election.

  • unit: the unit of analysis (province, department ...)

  • party: name of the political parties that obtain votes.

  • votes: votes obtained by each party.

  • votes_nac: votes at national level for each party.

If the data is not structured in this way you can order it with: convert_esaps.

method

Method to calculate Party System Nationalization Score:

  • method = "Mainwaring and Jones" or method = 1.

  • method = "Chhibber and Kollman" or method = 2.

pns

by default it is FALSE. If TRUE, the Party Nationalization Score is calculated. In method, you must indicate: method = 1.

scale

By default it is 100, the indices will vary between 0 and 100. If scale = 1 the variation will be between 0 and 1.

Value

if pns = FALSE, return data.frame.

if pns = TRUE, return a list with two data.frame.

Author(s)

Nicolas Schmidt nschmidt@cienciassociales.edu.uy

Examples

1
2
3
4
5
6
7
8
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)

Nicolas-Schmidt/esaps documentation built on Nov. 13, 2021, 7:38 a.m.