add_creg_fractionalization()
allows you to add information
about the fractionalization/polarization of a state's ethnic and religious groups to your dyad-year
or state-year data.
add_creg_fractionalization(data)
a dyad-year data frame (either "directed" or "non-directed") or a state-year data frame
add_creg_fractionalization()
takes a dyad-year data frame or state-year
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 dyad-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,
the return doubles because it provides information for both states in the dyad.
Please see the information for the underlying data creg
, and the
associated R script in the data-raw
directory, to see how these data are generated.
The 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_dyadyears()
or
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.
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.
# NOT RUN {
# }
# NOT RUN {
# 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()
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab