The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
politicsR
is an R package designed to help political
science researchers in calculating conventional party system and
political metrics. It offers a comprehensive set of functions for
calculating a wide range of indicators, including:
Party System Fractionalization Index as proposed by Douglas Rae (1968)
Effective Number of Political Parties by Laakso, M., & Taagepera, R. (1979)
Party Nationalization Index by Jones, M. P., & Mainwaring, S. (2003)
Rice Party Cohesion Index by Rice (1925); and many more.
You can install the development version of politicsR
from GitHub with:
# install.packages("devtools")
::install_github("silvadenisson/politicsR") devtools
To get started with politicsR
, load the package
with:
library(politicsR)
#>
#> To cite politicsR in publications, use: citation('politicsR')
Then you can start calculating diffent metrics, such as the Herfindahl-Hirschman Concentration Index (HH):
<- c(0.1, 0.1, 0.3, 0.5)
x hh(x)
#> [1] 0.36
Or the Effective Number of Political Parties (ENP):
enp(x)
#> [1] 2.777778
The politicsR
package also contains a few datasets with
electoral results that can be used to test its functions. These datasets
are organized by the Constituency-Level Elections
Archive (CLEA) project and provide a rich source of information for
political analysis. With these datasets and the functions provided by
the package, users can easily calculate political science metrics such
as Douglas Rae’s Fractionalization Index:
data(spain)
<- spain[spain$yr == 2019 & spain$cst_n == "Barcelona",]
barc2019 fractionalization(barc2019$pvs1)
#> [1] 0.6828265
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.