Last chance! 50% off unlimited learning
Sale ends in
Creates a stratEst.strategy object.
stratEst.strategy(
choices,
inputs = NULL,
prob.choices = NULL,
tr.inputs = NULL,
trembles = NULL,
num.states = NULL
)
A stratEst.strategy
object. A data.frame with the following variables:
the probability of choice x
.
the probability to observe a tremble.
the deterministic state transitions of the strategy for input x
.
a character vector. The levels of the factor choice
in the data.
a character vector. The levels of the factor input
in the data.
a numeric vector. The choice probabilities of the strategy in columnwise order.
a vector of integers. The deterministic state transitions of the strategy in columnwise order.
a numeric vector. The tremble probabilities of the strategy.
an integer. The number states of the strategy.
The strategy generation function of the package.
## Nash equilibrium strategy of rock-paper-scissors
ins = c(NA,"rock","paper","scissors")
rps = c("rock","paper","scissors")
mixed = stratEst.strategy(choices = rps)
nash = stratEst.strategy(choices = rps, prob.choices = rep(1/3,3))
rock = stratEst.strategy(choices = rps, prob.choices = c(1,0,0))
Run the code above in your browser using DataLab