stratEst.strategy: Creates a stratEst.strategy object.

Description Usage Arguments Details Value Examples

View source: R/stratEst_strategy.R

Description

Creates a stratEst.strategy object.

Usage

1
2
3
4
5
6
7
8
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

1
2
3
4
5
6
## 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))

stratEst documentation built on Oct. 6, 2021, 1:10 a.m.