View source: R/stratEst_strategy.R
| stratEst.strategy | R Documentation | 
Creates a stratEst.strategy object.
stratEst.strategy( choices, inputs = NULL, prob.choices = NULL, tr.inputs = NULL, trembles = NULL, num.states = NULL )
choices | 
 a character vector. The levels of the factor   | 
inputs | 
 a character vector. The levels of the factor   | 
prob.choices | 
 a numeric vector. The choice probabilities of the strategy in columnwise order.  | 
tr.inputs | 
 a vector of integers. The deterministic state transitions of the strategy in columnwise order.  | 
trembles | 
 a numeric vector. The tremble probabilities of the strategy.  | 
num.states | 
 an integer. The number states of the strategy.  | 
The strategy generation function of the package.
A stratEst.strategy object. A data.frame with the following variables:
prob.x | 
 the probability of choice   | 
tremble | 
 the probability to observe a tremble.  | 
tr(x) | 
 the deterministic state transitions of the strategy for input   | 
## 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.