rpslk: Rock-Paper-Scissors-Lizard-Spock Intransitive Competition...

Description Usage Arguments Value Examples

View source: R/rpslk.R

Description

Rock-Paper-Scissors-Lizard-Spock Intransitive Competition Model

Usage

1
rpslk(time, init_r, init_p, init_s, init_l, init_k, b)

Arguments

time

Vector of time points at which to evaluate system

init_r

Initial proportion playing strategy Rock

init_p

Initial proportion playing strategy Paper

init_s

Initial proportion playing strategy Scissors

init_l

Initial proportion playing strategy Lizard

init_k

Initial proportion playing strategy Spock

b

Benefit to winner of competition

Value

Tidy data frame with three columns:

Time Same values and units as argument time
Strategy One of 'Rock', 'Paper', 'Scissors', 'Lizard', or 'Spock'
Proportion Proportion of population playing given strategy at given time

Examples

1
2
3
t <- seq(0, 50, 0.1)
rpslk(time = t, init_r = 0.02, init_p = 0.02, init_s = 0.03, init_l = 0.9,
      init_k = 0.03, b = 0.7)

patrickbarks/popmods documentation built on May 21, 2019, 2:07 p.m.