dublin_west: Election Dataset to Dublin West Constituency

Description Usage Format References Examples

Description

Dataset containing ranked votes for the Dublin West constituency in 2002, Ireland. Results of that STV elections can be viewed at https://en.wikipedia.org/wiki/Dublin_West#2002_general_election. They can be reproduced via the stv function, see Example below.

Usage

1
data("dublin_west")

Format

A data frame with 29988 observations and 9 candidates. Each record corresponds to one ballot with candidates being ranked between 1 and 9 with zeros allowed.

References

https://en.wikipedia.org/wiki/Dublin_West#2002_general_election

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data(dublin_west)
head(dublin_west)

## Not run: 
# produce similar results as in the Wikipedia link above
dwstv <- stv(dublin_west, nseats = 3, eps = 1, constant.quota = TRUE)

# plot results
plot(dwstv)
image(dwstv)
image(dwstv, all.pref = TRUE)
## End(Not run)

vote documentation built on Feb. 5, 2022, 1:08 a.m.