rho_sigma_agent: rho_sigma_agent

Description Usage Arguments Value

View source: R/utils.R

Description

returns choice_prob (probability choosing lottery) or choice (binary) from the simulated three-agent rho-sigma agent

Usage

1
2
3
4
5
6
7
8
rho_sigma_agent(
  prob = FALSE,
  params,
  sb_mag,
  lottery_mag,
  lottery_prob,
  total_rew_multi
)

Arguments

prob:

Boolean, if true returns choice_prob

params:

a list as in list('rho' = 1, 'sigma' = 0.4, 'omega' = c(0.8, 0.1, 0.1))

sb_mag:

a vector of n_trials with surebet magnitude

lottery_mag:

a vector of n_trials with lottery magnitude

lottery_prob:

a vector of n_trials with lottery probability

total_rew_multi:

a vector of n_trials with total reward multiplier

Value

a vector of n_trials with choice_prob or choice


xiaoyuezhuu/risky-muscimol documentation built on Jan. 7, 2022, 12:27 a.m.