swop5 | R Documentation |
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).
swop5
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.
Regenwetter, M., & Davis-Stober, C. P. (2012). Behavioral variability of choices versus structural inconsistency of preferences. Psychological Review, 119(2), 408-416. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1037/a0027372")}
The corresponding data set regenwetter2012
.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.