p2shape: Calculate Reference Points from Pella-Tomlinson Model...

View source: R/pellaTrefpts.R View source: R/FLBRP-pellaT.R

p2shapeR Documentation

Calculate Reference Points from Pella-Tomlinson Model Parameters

Description

S4 generic method to calculate FMSY, BMSY, MSY and related parameters from Pella-Tomlinson model parameters. Works with both numeric vectors and FLPar objects.

Usage

p2shape(p)

Arguments

p

Shape parameter of the Pella-Tomlinson model (use NULL if specifying shape)

r

Intrinsic rate of population increase

K

Carrying capacity

shape

Ratio of BMSY to K (use NULL if specifying p)

...

Additional arguments (not used)

Value

For numeric inputs: a named vector (for single values) or data frame (for multiple values) For FLPar inputs: an FLPar object

Examples

# Using shape parameter (p=1 for Schaefer model)
pellatRefpts(0.2, 1000, p=1)

# Using BMSY/K ratio (0.4 is between Schaefer and Fox)
pellatRefpts(0.2, 1000, shape=0.4)

# Using vectors
pellatRefpts(c(0.2, 0.3), c(1000, 2000), p=c(1, 0.5))


laurieKell/FLCandy documentation built on April 17, 2025, 5:23 p.m.