sim_fict | R Documentation |
sim_fict()
simulates a fictitious play of a game
sim_fict(
game,
n_samples = 1,
n_periods = 50,
lambda = 1,
init = NULL,
sigma = 0,
plot_range_y = NULL,
plot_id = 1
)
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. |
lambda |
A positive real value representing the players' sensitivity to
expected utilities. As |
init |
A list of initial levels of beliefs. The length of the list must
be two. Each element must be a vector of values between 0 and 1
representing a player's belief. If |
sigma |
A non-negative value determining the level of noise adherent to evaluation of payoffs. |
plot_range_y |
Choose the range of vertical axis for plots. Available
choices are |
plot_id |
An integer between 1 and n_samples to specify for which
sample, playing history should be displayed. If |
Simulate fictitious plays of a normal-form game defined by
normal_form()
.
A list containing (1) a data frames of strategies chosen by each player, (2) a single long data frame of (1)'s data frames combined, (3) a list of each player's belief about the opponent's behavior (data frames), (4) a list of probability of each strategy being chosen (data frames), and (5) three plots of simulation result.
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.