add_creg_fractionalization() allows you to add information about the
fractionalization/polarization of a state's ethnic and religious groups to
a data frame with appropriate peacesciencer attributes
Please see the information for the underlying data
and the associated R script in the
data-raw directory, to see how
these data are generated.
creg data have a few duplicates. When standardizing to true CoW
codes, the duplicates concern Serbia/Yugoslavia in 1991 and 1992 as well as
Russia/the Soviet Union in 1991. When standardizing to true Gleditsch-Ward
codes, the duplicates concern Serbia/Yugoslavia in 1991 and Russia/Soviet
Union in 1991. In those cases, the function does a group-by arrange for
the more fractionalized/polarized estimate under the (reasonable, I think)
assumption that these are estimates prior to the dissolution of those
states. If this is problematic, feel free to consult the underlying data
and merge those in manually.
The underlying data have both Gleditsch-Ward codes and Correlates of War
codes. The merge it makes depends on what you declare as the "master"
system at the top of the pipe (i.e. in
create_stateyears()). If, for example, you run
create_stateyears(system="cow") and follow it with
add_gwcode_to_cow(), the merge will be on the Correlates of War
codes and not the Gleditsch-Ward codes. You can see the script mechanics
to see how this is achieved.
Be mindful that the data are fundamentally state-year and that extensions to leader-level data should be understood as approximations for leaders in a given state-year.
add_creg_fractionalization() takes a dyad-year, leader-year,
leader-dyad-year, or state-data frame, whether the primary state
identifiers are from the Correlates of War system or the Gleditsch-Ward
system, and returns information about the fractionalization and
polarization of the state(s) in a given year. The function returns four
additional columns when the data are state-year and returns eight
additional columns when the data are state-year (or leader-year).
The columns returned are the fractionalization of ethnic groups, the
polarization of ethnic groups, the fractionalization of religious groups,
and the polarization of religious groups. When the data are dyad-year
(or leader-dyad-year), the return doubles because it provides information
for both states in the dyad.
Steven V. Miller
Alesina, Alberto, Arnaud Devleeschauwer, William Easterly, Sergio Kurlat and Romain Wacziarg. 2003. "Fractionalization". Journal of Economic Growth 8: 155-194.
Montalvo, Jose G. and Marta Reynal-Querol. 2005. "Ethnic Polarization, Potential Conflict, and Civil Wars" American Economic Review 95(3): 796–816.
Nardulli, Peter F., Cara J. Wong, Ajay Singh, Buddy Petyon, and Joseph Bajjalieh. 2012. The Composition of Religious and Ethnic Groups (CREG) Project. Cline Center for Democracy.
# just call `library(tidyverse)` at the top of the your script library(magrittr) cow_ddy %>% add_creg_fractionalization() create_stateyears() %>% add_creg_fractionalization() create_stateyears(system = "gw") %>% add_creg_fractionalization()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.