compete_all: compete_all

Description Usage Arguments Value Author(s)

Description

A function for making all agents in a dataframe compete

Usage

1
compete_all(agent_df, p_matrix, n_rounds = 10)

Arguments

agent_df

A tibble (dataframe) with matched agents their parameter values and priors. Created with create_agents and/or prepare_df

p_matrix

A given 2-by-2 payoff matrix

n_rounds

number of rounds the agents compete

Value

A tibble (dataframe) containing the choices, rewards and states for every round, and for every competing pair

Author(s)

K. Enevoldsen & P. Waade


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