A simple function to determine a daily mortality likelihood according to the value of a stress variable.
mortality_dailyProbability(mortalityBaselineRate,
stressValue, stressThreshold,
allowStress = TRUE,
minValue = 0.0, slope = 1.0)
Baseline mortality rate at the annual scale.
Current value of the stress variable (lower values indicate stronger stress).
Threshold to indicate that lower values increase mortality likelihood.
A boolean function to activate stress effects.
Minimum value of the stress variable (i.e. maximum stress), corresponding to probability of mortality equal to 1.
Slope coefficient modulating how fast probability increases after the stress threshold has been reached.
Returns a probability (between 0 and 1).