ESset | R Documentation |
Computes evolutionarily stable sets of a game with two players and three strategies.
ESset(A, strategies = c("1", "2", "3"), floats = TRUE)
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
|
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.
Daniel Gebele dngebele@gmail.com
Thomas, B. (1985) "On evolutionarily stable sets", Journal of Mathematical Biology 22, pp. 105–115.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.