ESS: ESS for two-player games with a maximum of three strategies

Description Usage Arguments Value Author(s) References Examples

View source: R/ESS.R

Description

Computes Evolutionary Stable Strategies of a game with two players and a maximum of three strategies.

Usage

1
ESS(A, strategies = c(), floats = TRUE)

Arguments

A

Numeric matrix of size 2x2 or 3x3 representing the number of strategies of a symmetric matrix game.

strategies

String vector of length n that names all strategies whereas n represents the number of strategies.

floats

Logical value that handles number representation. If set to TRUE, floating-point arithmetic will be used, otherwise fractions. Default is TRUE.

Value

Numeric matrix. Each row represents an ESS.

Author(s)

Daniel Gebele [email protected]

References

Smith, J. M. and Price, G. R. (1973) "The logic of animal conflict", Nature 246, pp. 15–18.

Examples

1
2
ESS(matrix(c(-1, 4, 0, 2), 2, byrow=TRUE), c("Hawk", "Dove"), FALSE)
ESS(matrix(c(1, 2, 0, 0, 1, 2, 2, 0, 1), 3, byrow=TRUE))

EvolutionaryGames documentation built on Nov. 27, 2017, 5:05 p.m.