data(heck2017)
head(heck2017)
n <- rep(40, 4)
# cue validities and values
v <- c(.9, .8, .7, .6)
cueA <- matrix(
c(
-1, 1, 1, -1,
1, -1, -1, 1,
-1, 1, 1, 1,
1, -1, -1, -1
),
ncol = 4, byrow = TRUE
)
cueB <- matrix(
c(
-1, -1, -1, -1,
-1, 1, -1, 1,
-1, 1, 1, -1,
-1, 1, 1, -1
),
ncol = 4, byrow = TRUE
)
# get predictions
strategies <- c(
"baseline", "WADDprob", "WADD",
"TTBprob", "TTB", "EQW", "GUESS"
)
strats <- strategy_multiattribute(cueA, cueB, v, strategies)
# strategy classification with Bayes factor
strategy_postprob(heck2017[1:4, ], n, strats)
Run the code above in your browser using DataLab