sim_game() simulates plays expected in a normal-form game.

sim_game_br(
  game,
  n_periods,
  init1 = NULL,
  init2 = NULL,
  omega = 0,
  cons1 = NULL,
  cons2 = NULL
)

Arguments

game

An object of normal_form class defined by normal_form().

n_periods

A positive integer specifying how many times the game is played within each sample.

init1

Player 1's first strategy. If not specified, a strategy is randomly selected from the player's strategy set.

init2

Player 2's first strategy. If not specified, a strategy is randomly selected from the player's strategy set.

omega

A numeric value between 0 and 1 to control the degree of inertia in each player's behavior. If omega = 1, ach player does not change their choices over time. If omega = 0, each player does not stick to their previous choice at all.

cons1

A named list of parameters contained in game$payoff$payoffs1 that should be treated as constants, if any.

cons2

A named list of parameters contained in game$payoff$payoffs2 that should be treated as constants, if any.

Value

data.frame containing the history of the game played.

Details

Simulate plays expected in a normal-form game defined by normal_form() when each player chooses the best response to the other player's previous move.

Author

Yoshio Kamijo and Yuki Yanai yanai.yuki@kochi-tech.ac.jp