Skip to content
yukiyanaiPublic

About

ETAD: An R package for Election Timing across Autocracy and Democracy

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

Repository files navigation

ETAD: Election Timing across Autocracy and Democracy

Overview

The ETAD dataset provides information of the dates when national elections were scheduled and held. It currently covers national legislative and presidential the periods between 1945 and 2023 for 148 countries.

Installation

You can install the development version from GitHub with:

# install.packages("remotes")
remotes::install_github("yukiyanai/ETAD")

or

# install.packages("devtools")
devtools::install_github("yukiyanai/ETAD")

Citation

When using the ETAD dataset, please remember to cite the following paper.

Data

You only have to load the ETAD package to use the data.

library(ETAD)

Then, you can use the data object called ETAD. For instance, you can glance at the top rows of the dataset by:

head(ETAD)

If you would like to use the dataset outside R, please export the dataset to a file as follows.

To export it to a CSV file:

export_ETAD_csv(file = "fileNameOfYourChoice.csv")

To export it to a TSV file:

export_ETAD_tsv(file = "fileNameOfYourChoice.tsv")

To export it to a file in Stata 14 dta format (you need haven package for this):

export_ETAD_dta(file = "fileNameOfYourChoice.dta",
                version = 14)

Codebook

Codebook for ETAD (v.1) (PDF)

Authors

About

ETAD: An R package for Election Timing across Autocracy and Democracy

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages