On this page

Evaluate a logistic curve defined by lengths at 50% and 95%.

Usage

mat_func(L50, L95, length)

Arguments

ArgumentDefaultDescription
L50required

Length at which the proportion is 0.5.

L95required

Length at which the proportion is 0.95. It must differ from L50 and is below L50 for a descending curve.

lengthrequired

Lengths at which to calculate the proportion.

Value

A numeric vector of proportions at the supplied lengths.

Details

An increasing curve, such as maturity, has L95 > L50; a descending selectivity limb has L95 < L50. L50 and L95 must be distinct finite numbers. The simulator also uses this curve for survey catchability and fishery selectivity.

Additional details from R help

L50 and L95 must be distinct finite scalars. A decreasing curve (L95 below L50) is supported for descending selectivity limbs. Stable logistic evaluation retains probabilities of zero or one in extreme tails.

Examples

Run the setup before the example. Fitting examples require an R-compatible C++ toolchain; simulation and export examples may write files.

Example setup
library(ALSCL)
# Use objects defined above
mat_func(L50 = 35, L95 = 40, length = seq(6, 50, 2))

See also

Search documentation