strategies.RPS {stratEst} | R Documentation |
strategies.RPS
Description
Six rock-paper-scissors strategies.
Usage
data(strategies.RPS)
Format
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.
Details
The rock-paper-scissors strategies are:
- rock
Strategy which plays rock.
- paper
Strategy which plays paper.
- scissors
Strategy which plays scissors.
- nash
Nash equilibrium strategy which plays every action with probability one-third.
- mixed
Strategy which plays every action with a certain probability.
- imitate
Strategy which plays a random action in the first round and subsequently imitates the last choice.
Examples
strategies <- strategies.RPS[c("nash","mixed","imitate")]