ESS {EvolutionaryGames}R Documentation

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

Description

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

Usage

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 dngebele@gmail.com

References

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

Examples

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

[Package EvolutionaryGames version 0.1.2 Index]