getConfidence: Return the confidence of the 'agents' given a percept,...

Description Usage Arguments Details Value

View source: R/simulation.R

Description

Return the confidence of the agents given a percept, confidence steepness, and bias.

Usage

1
getConfidence(agents, truth_sd)

Arguments

agents

tbl with a snapshot of agents at a given decision time

truth_sd

agents' beliefs about the world's variability

Details

agents should have the fields $percept, $confidence_slope, and $bias

Value

agents' confidence the answer is 1 vs 0 as a proportion.


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