strategies.RPS | R Documentation |
Six rock-paper-scissors strategies.
data(strategies.RPS)
Each strategy is encoded as a stratEst.strategy object. The rows of the data frame represent the states of the strategy. The first row is the start state of the strategy. Each stratEst.strategy object contains the following variables:
prob.r
Probability to play rock.
prob.p
Probability to play paper.
prob.s
Probability to play scissors.
tremble
Probability of a tremble.
tr(r)
State transition for the input last choice was rock.
tr(p)
State transition for the input last choice was paper.
tr(s)
State transition for the input last choice was scissors.
The rock-paper-scissors strategies are:
Strategy which plays rock.
Strategy which plays paper.
Strategy which plays scissors.
Nash equilibrium strategy which plays every action with probability one-third.
Strategy which plays every action with a certain probability.
Strategy which plays a random action in the first round and subsequently imitates the last choice.
strategies <- strategies.RPS[c("nash","mixed","imitate")]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.