Learn R Programming

medfate (version 2.3.7)

Mortality: Mortality

Description

A simple function to determine a daily mortality likelihood according to the value of a stress variable.

Usage

mortality_dailyProbability(mortalityBaselineRate, 
                           stressValue, stressThreshold, 
                           allowStress = TRUE,
                           minValue = 0.0, slope = 1.0)

Arguments

mortalityBaselineRate

Baseline mortality rate at the annual scale.

stressValue

Current value of the stress variable (lower values indicate stronger stress).

stressThreshold

Threshold to indicate that lower values increase mortality likelihood.

allowStress

A boolean function to activate stress effects.

minValue

Minimum value of the stress variable (i.e. maximum stress), corresponding to probability of mortality equal to 1.

slope

Slope coefficient modulating how fast probability increases after the stress threshold has been reached.

Value

Returns a probability (between 0 and 1).

See Also

growth