Joins country-year leader data onto an existing state panel. The coding system and year range are detected automatically from the panel.
Each country-year is assigned the leader who held power at the end of that year (i.e., the leader with the latest start date when multiple leaders served in the same year).
Usage
add_leader_data(panel, dataset = c("archigos", "reign"))Arguments
- panel
A data frame produced by
build_states_panel().- dataset
Dataset to use:
"archigos"(default) or"reign". Seeload_leader_data()for details.
References
Goemans, H. E., Gleditsch, K. S., & Chiozza, G. (2009). Introducing Archigos: A dataset of political leaders. Journal of Peace Research, 46(2), 269-283.
Bell, C., Besaw, C., & Frank, M. (2021). The Rulers, Elections, and Irregular Governance (REIGN) Dataset.
Examples
panel <- build_states_panel(1990, 2010, coding_system = "cow") |>
add_leader_data(dataset = "archigos")
panel <- build_states_panel(1990, 2010, coding_system = "cow") |>
add_leader_data(dataset = "reign")
