advisorChoiceError: Calculate choice error averaged over the last 5 trials

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Calculate choice error averaged over the last 5 trials

Usage

1
advisorChoiceError(trust, advisorIndex, choice0, choice1, slope, nBack = 5L)

Arguments

trust

Matrix of trust values - dims = trials x advisors

advisorIndex

indices of chosen advisors

choice0

indices of the advisor in the first choice slot

choice1

indices of the advisor in the second choice slot

slope

slope of the sigmoid function

nBack

number of trials to look back. Looks at previous trials where the advisorIndex advisor is in one of the choice slots.

Value

Matrix of mean pick rate for the advisorIndex advisor (column 1) and mean predicted pick rate for that advisor (column 2)


oxacclab/adviseR documentation built on Oct. 7, 2021, 8:05 p.m.