WinsetCreator(PolityUrl = "http://www.systemicpeace.org/inscr/p4v2012.sav", DpiUrl = "http://bit.ly/1jZ3nmM", OutCountryID = "iso2c", na.rm = TRUE)
countrycode
for available options.OutCountryID
is NA
.iso2c
: The ISO two letter country code identifying the country. This can be changed to another country ID system using OutCountryID
country
: Country names.
year
: The year.
W
: The winset variable. The variable is the same as Bueno de Mesquita (2003) except the military executive component is from DPI, rather than Banks (1996).
ModS
: The modified selectorate variable. Instead of being based on Polity LEGSELEC, which is no longer create, ModS
is based on the Legislative Index of Electoral Competetiveness variable (LIEC) from DPI. No legislature = 1. Unelected legislature = 2. Elected legislature with only 1 candidate = 3. Elected legislatures with 1 party and multiple candidates = 4. All other legislatures = 5. The variable is then standardised between 0 and 1 by subtracting by 1 then dividing by 4. Note: some countries were coded in LIEC as 3.5, so ModS
has 6 levels between 0 and 1.
countrycode
, CountryID
, DpiGet
, PolityGet
## Not run:
# # Create winset data using default options
# WinsetData <- WinsetCreator()
# ## End(Not run)
Run the code above in your browser using DataLab