rateFuncCheck {stagePop}R Documentation

rateFunCheck

Description

check the user-defined rate functions exist and are in the correct format

Usage

rateFuncCheck(
  x,
  numSpecies,
  numStages,
  numStrains,
  timeDependDuration,
  rateFunctions,
  speciesNames,
  stageNames,
  startTime
)

Arguments

x

Vector of state variables within the DDE solver. To access a variable use: x$speciesName['stageName',strainNumber]

numSpecies

Number of species

numStages

Number of life stages

numStrains

Number of strains for each species

timeDependDuration

vector of logicals defining whether the stage duration is time dependent for each species

rateFunctions

List of rate functions to check

speciesNames

Vector of species names

stageNames

Vector of species' stage names

startTime

First entry in timeVec vector

Details

checks existence of deathFunc, reproFunc, durationFunc, immigrationFunc and develFunc if there is time dependent duration.

Also checks that output from rate functions is a single value

Value

TRUE/FALSE - TRUE if rate functions are OK, FALSE if not.


[Package stagePop version 1.1-2 Index]