create_agents: create_agents

Description Usage Arguments Author(s)

Description

Creates a dataframe with agents and their opponents. If prepare_with_defaults is set to TRUE, this also prepares their parameter values and priors, which can fed to the compete function. If prepare_with_defaults is set to FALSE, the output needs to be inserted into the prepare_df function.

#implemented agent strategies RB: Random Bias TFT: Tit for Tat WSLS: Win-stay Loose-switch SoftmaxTitTat: A tit for tat using a softmax function as well as an utility function 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

implemented matchup types include RR: Round robin, every strategy in the strategies input matched up against every other strategy random: The strategies in the strategies input is randomly matched up half_half: the first half is matched up with the second half

Usage

1
create_agents(strategies, match_up = "RR", prepare_with_defaults = T)

Arguments

strategies

A list of strategies given as a vector

match_up

a string argument deciding which tournament structure is used

Author(s)

K. Enevoldsen & P. Waade


KennethEnevoldsen/SiRToM documentation built on May 28, 2019, 9:32 a.m.