Learn R Programming

EvolutionaryGames (version 0.1.2)

Replicator: Replicator dynamic

Description

Replicator dynamic as a type of evolutionary dynamics.

Usage

Replicator(time, state, parameters)

Value

Numeric list. Each component represents the rate of change depending on the dynamic.

Arguments

time

Regular sequence that represents the time sequence under which simulation takes place.

state

Numeric vector that represents the initial state.

parameters

Numeric vector that represents parameters needed by the dynamic.

Author

Daniel Gebele dngebele@gmail.com

References

Taylor, P. D. and Jonker, L. B. (1978) "Evolutionary stable strategies and game dynamics", Mathematical Biosciences 40 (1-2), pp. 145--156.

Examples

Run this code
dynamic <- Replicator
A <- matrix(c(0, -2, 1, 1, 0, -2, -2, 1, 0), 3, byrow=TRUE)
state <- matrix(c(0.4, 0.3, 0.3), 1, 3, byrow=TRUE)
phaseDiagram3S(A, dynamic, NULL, state, FALSE, FALSE)

Run the code above in your browser using DataLab