Description Usage Arguments Value Author(s)
Function for generating parameter values and priors for an agent. Parameter values are specified as vectors, where the first number is the mean and the second number is the standard deviation of the normal distribution they are sampled from. If no values are specified, defaults are used. Only the values for the strategy specified are returned. Implemented agent strategies: RB: Random Bias TFT: Tit for Tat WSLS: Win-stay Loose-switch k-ToM: a k-level theory of mind agent. Note that you input the desired k-level in place of k, e.g. 1-ToM
1 2 3 4 5 | prepare(strategy_string, RB = c(prop_mean = 0.8, prop_sd = 0.1),
TFT = c(prob_mean = 0.9, prob_sd = 0.1), WSLS = c(stay_mean = 0.9,
stay_sd = 0.1, switch_mean = 0.9, switch_sd = 0.1),
k_ToM = c(volatility_mean = -2, volatility_sd = 0, temperature_mean =
-10, temperature_sd = 0), k_ToM_priors = "default")
|
strategy_string |
A string of the strategy used by the agent. |
RB |
A vector of mean and standard deviation of the choice probability parameter (used for RB) |
TFT |
A vector of mean and standard deviation of the choice probability parameter (used for TFT) |
WSLS |
A vector of mean and standard deviation of the win stay probability and the loose shift parameters (used for WSLS) |
k_ToM |
A vector of mean and standard deviation of the volatility and behavioural temperature parameters (used for k-ToM) |
k_ToM_priors |
A list structure containing priors for all of k-ToM's estimates. This is fed to the red_prepare_k_tom function. If a string is specified, defaults will be used |
A list structure containing the sampled parameter values of the agent and the states for the first round (if any).
K. Enevoldsen & P. Waade
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.