Mean (expert placements) or median (member ideal points) position of each
party per dimension with bootstrap standard errors (Philox resampling within
party) and inter-party distances.
Usage
PartyPositions(
points,
party,
statistic = c("mean", "median"),
n_boot = 200,
seed = 0
)
Arguments
- points
Positions (vector) or points (matrix rows).
- party
Party labels.
- statistic
"mean" or "median".
- n_boot
Bootstrap replicates.
- seed
Philox seed.
Value
list(parties, position, se, n, distance).
References
Laver, M. and Hunt, W. B. (1992). Policy and Party Competition.
Routledge.
Examples
PartyPositions(c(1, 2, 3, 7, 8, 9), c("D", "D", "D", "R", "R", "R"), n_boot = 0)$position
#> [,1]
#> [1,] 2
#> [2,] 8