An R package to load, explore, and work with the Episodes of Regime Transformation (ERT) dataset - a project of the V-Dem Institute. This forked version includes support for localization in Spanish ("es").
Load, explore, and work with the ERT dataset (for details see also the ERT Codebook):
- NOTE: for non-R users we provide the ERT dataset here as csv. or .xlsx file - however, we recommend loading the ERT dataset via the package since one huge advantage of the package is that it allows to flexibly set parameters for generating the episodes.
- RELEASES: ERT 15.0 is based on the V-Dem dataset v15. For earlier releases using earlier versions of the V-Dem dataset, see the "Releases" column on the right sight.
get_eps: Identify episodes of regime transitions (autocratization, democratization) in the most recent V-dem data set. Autocratization is defined as any movement towards autocracy which starts within democracies or autocracies (cf. Maerz et al., Journal of Peace Research, 2023 and Lührmann and Lindberg, Democratization, 2019). Democratization is defined as any movement towards democracy which starts in autocracies or democracies (cf. Wilson et al., 2022)find_overlap: Find potential overlaps between episodes of democratization and autocratization which may occur depending on how the thresholds are set.plot_episodes: Plot Episodes of Regime Transitions (ERT) over time for a selected country.plot_all: Plot share or absolute number of all countries in Episodes of Regime Transitions (ERT) over time.
- For additional transparency, we provide a ShinyApp for validation which allows users to flexibly adjust the ERT parameters and to test how changes to the default thresholds affect the episodes and their validity.
# Install the development version of the ERT package
# (this package is an ongoing project,
# keep checking for updates)
# First, you need to have the devtools package installed
install.packages("devtools")
# now, install the ERT package directly from GitHub
devtools::install_github("pablohernandezb/ERT")
# NOTE: make sure you have an updated R version and
# - since the package is a development version -
# an updated version of xcode (Mac), rtools (Windows), r-base-dev (Linux)
# installed. If you have troubles with the installation
# write to contact@v-dem.net at the V-Dem Institute.
This fork of the ERT package supports localization for plot labels and country names in English ("en") and Spanish ("es"). You can set the language for labels and country names using the lang argument in plotting functions. It is not mandatory to include the lang argument, the default is set to be English ("en").
get_label: Retrieve localized labels for plot elements and messages, supporting multiple languages.get_country_name: Retrieve localized country names for use in plots and summaries.
Example:
# Plot all episodes of democratization and autocratization in Spanish
plot_all(lang = "es")
# Plot the democratization and autocratization episodes for Venezuela in Spanish
plot_episodes_test(country = c("Venezuela"), years = c(1900, 2023), lang = "es")
For more details, see the documentation. Feel free to reach out hi@pablohernandezb.dev if you have any recommendations, comments or questions!