swop5 {multinomineq} | R Documentation |
Strict Weak Order Polytope for 5 Elements and Ternary Choices
Description
Facet-defining inequalities of the strict weak order mixture model for all 10 paired comparisons of 5 choice elements {a,b,c,d,e} in a 3-alternative forced-choice task (Regenwetter & Davis-Stober, 2012).
Usage
swop5
Format
A list with 3 elements:
A
:Matrix with inequality constraints that define a polytope via
A*x <= b
.b
:vector with upper bounds for the inequalities.
start
:A point in the polytope.
options
:A vector with the number of options (=3) per item type.
References
Regenwetter, M., & Davis-Stober, C. P. (2012). Behavioral variability of choices versus structural inconsistency of preferences. Psychological Review, 119(2), 408-416. doi:10.1037/a0027372
See Also
The corresponding data set regenwetter2012
.
Examples
data(swop5)
tail(swop5$A) # A*x <= b
tail(swop5$b)
swop5$start # inside SWOP polytope
swop5$options # 3 choice options per item
# check whether point is in polytope:
inside(swop5$start, swop5$A, swop5$b)
# get prior samples:
p <- sampling_multinom(0, swop5$options,
swop5$A, swop5$b,
M = 100, start = swop5$start
)
colMeans(p)
apply(p[, 1:5], 2, plot, type = "l")
[Package multinomineq version 0.2.6 Index]