stratEst.strategy {stratEst}R Documentation

Creates a stratEst.strategy object.

Description

Creates a stratEst.strategy object.

Usage

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.

Details

The strategy generation function of the package.

Value

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.

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))

[Package stratEst version 1.1.6 Index]