InvasionSimulation: Invasion Simulation

View source: R/Source_Parameters_and_Simulation.R

InvasionSimulationR Documentation

Invasion Simulation

Description

Runs an invasion simulation where the time to conversion and final average value of the trait is returned. [numInvader] invaders have their [trait] changed to [invaderStat] and their age reset to 1 time step [when]. Simulation ends when invaders are expelled, take over, or P$nSim time steps have passed.

Usage

InvasionSimulation(P, numInvader, trait, stat, when)

Arguments

P

a list of parameters

numInvader

the number of invaders to add

trait

the stat to change: LrnThsh, Acc, ChanceInv, or ChanceFor

when

the time step at which to introduce the invaders

invaderStat

the stat to change: LrnThsh, Acc, ChanceInv, or ChanceFor

See Also

Other Sim Functions: BasicSimulation, CheckInsultPs, CheckInvasion, GetSaveInfo, InsultSimulation, LightSimulation, SEMSimulation


NeuroBio/SEM_R_Package documentation built on April 24, 2022, 5:54 p.m.