Logo Lanfrica

carl-mc/LEDA

Domain:

socioeconomic

Record type:

software
Creator:
car
Host:
Linking Ethnic Data from Africa The LEDA package contains a full pipeline to link ethnic datasets from Africa. The main strength of LEDA consists in leveraging the structure of the language tree to provide a flexible link between any two ethnic group that are linked to the tree. The package allows lists of ethnic groups to be linked to each other using three main linkage types: binary linking based on the relations of sets of language nodes associated with two groups; binary linking based on lingustic distances; and a full computation of dyadic linguistic distances. Usage of a LEDA object is structured around *lists of ethnic groups*. These lists of groups stem from the original datasets that have been joined to the language tree. Lists are structured by data source, country, year, or, in the case of survey data, survey rounds. Via the language tree, any two lists of ethnic groups can be linked to each other. For full information on the LEDA project and methodology, read the paper here or at the Journal of Peace Research. When using the LEDA package, please cite: Müller-Crepon, Carl, Yannick Pengl, and Nils-Christian Bormann (2020). *Linking Ethnic Data from Africa*. Journal of Peace Research, 59(3), 425–435. ## Updates *12. June 2024*: Added links to Afrobarometer Rounds 7 and 8. Thanks to Vladimir Chlouba for the help with coding these (he coded the ethnicity variables, Carl Müller-Crepon added the languages)! ## Installation You can directly download and install the LEDA package from GitHub. library(devtools) install_github(repo = "carl-mc/LEDA") ## Initialize linking object The LEDA package is programmed in an object oriented manner. Once you initialize a LEDA-object, methods are applied directly to the object and either change the object or return the results of a query. See the documentation of the R-package R6 for details. ### Create LEDA objects library(LEDA) leda ## 2 GMB ethnic group NA 420 AMAR 2 Group NA NA ## 3 MLI ethnic group NA 432 AM …