sim_game | R Documentation |
sim_game()
simulates plays expected in a normal-form
game.
sim_game(
game,
n_samples,
n_periods,
type = "br",
init1 = NULL,
init2 = NULL,
omega = 0,
eta = 0.1,
lambda = 1,
cons1 = NULL,
cons2 = NULL,
plot_range_y = NULL
)
game |
An object of |
n_samples |
A positive integer specifying the number of samples to be simulated. |
n_periods |
A positive integer specifying how many times the game is played within each sample. |
type |
A character string to tell what kind of simulation should be run.
The available options are |
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 |
eta |
A numeric value between 0 and 1 to control the degree of
randomness in each player's behavior. If |
lambda |
A positive value controlling the weight of the best response to the previous move of the opponent. |
cons1 |
A named list of parameters contained in
|
cons2 |
A named list of parameters contained in
|
plot_range_y |
Choose the range of vertical axis for plots. Available
choices are |
Simulate plays expected in a normal-form game defined by
normal_form()
.
A data frame of simulation results.
Yoshio Kamijo and Yuki Yanai yanai.yuki@kochi-tech.ac.jp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.