Description Usage Arguments Value Author(s)
Makes two agents play against each other a set number of rounds
1 2 |
player1 |
player 1's strategy function |
player2 |
player 2's strategy function |
p1_params |
a list structure containing player 1's parameter values |
p2_params |
a list structure containing player 2's parameter values |
p1_hidden_states |
player 1's starting states, i.e. priors |
p2_hidden_states |
player 2's starting states, i.e. priors |
p_matrix |
a given 2-by-2 payoff matrix |
n_rounds |
number of rounds to compete |
A dataframe containing the two agents' choices, rewards and states, for each round
K. Enevoldsen & P. Waade
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.