ESset: Evolutionarily stable set for two-player games with three...

Description Usage Arguments Value Author(s) References Examples

View source: R/ESset.R

Description

Computes evolutionarily stable sets of a game with two players and three strategies.

Usage

1
ESset(A, strategies = c("1", "2", "3"), floats = TRUE)

Arguments

A

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

strategies

String vector of length 3 that names all 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 the start and end point of a line (ESset). In addition, a plot of the ESset in the game will be created.

Author(s)

Daniel Gebele [email protected]

References

Thomas, B. (1985) "On evolutionarily stable sets", Journal of Mathematical Biology 22, pp. 105–115.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Please note that the computation of evolutionarily stable sets 
# is rather time-consuming. 
# Depending on your machine you might need to wait more 
# than 10 seconds in order to run the following example.
## Not run: 
A <- matrix(c(-2, 5, 10/9, 0, 5/2, 10/9, -10/9, 35/9, 10/9), 3, byrow=TRUE)
strategies <- c("Hawk", "Dove", "Mixed ESS")
ESset(A, strategies)

## End(Not run)

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