stratEst.strategy function

Creates a stratEst.strategy object.

Creates a stratEst.strategy object.

stratEst.strategy( choices, inputs = NULL, prob.choices = NULL, tr.inputs = NULL, trembles = NULL, num.states = NULL )

Arguments

  • choices: a character vector. The levels of the factor choice in the data.
  • inputs: a character vector. The levels of the factor input in the data.
  • 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.

Returns

A stratEst.strategy object. A data.frame with the following variables: - prob.x: the probability of choice x.

  • tremble: the probability to observe a tremble.

  • tr(x): the deterministic state transitions of the strategy for input x.

Details

The strategy generation function of the package.

Examples

## 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))
  • Maintainer: Fabian Dvorak
  • License: GPL-3
  • Last published: 2025-04-01