check the user-defined rate functions exist and are in the correct format
rateFuncCheck(
x,
numSpecies,
numStages,
numStrains,
timeDependDuration,
rateFunctions,
speciesNames,
stageNames,
startTime
)
Vector of state variables within the DDE solver. To access a variable use: x$speciesName['stageName',strainNumber]
Number of species
Number of life stages
Number of strains for each species
vector of logicals defining whether the stage duration is time dependent for each species
List of rate functions to check
Vector of species names
Vector of species' stage names
First entry in timeVec vector
TRUE/FALSE - TRUE if rate functions are OK, FALSE if not.
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