View source: R/calcPrMoltToMaturity.R
calcPrMoltToMaturity | R Documentation |
Function to calculate the probability at crab size z for the molt to maturity, pr(mature|z). Note that it is up to the user to define whether "size" refers to pre-molt or post-molt size. If pre-molt, then pr(mature|z) is the probability of molting to maturity (terminal molt) on the NEXT molt whereas if size is post-molt then pr(mature|z) is the probability that a crab that just molted to size z also matured.
calcPrMoltToMaturity(
coeffs = list(type = "logistic", z50 = 130, slope = 0.1),
sizes = seq(from = 25, to = 185, by = 1)
)
coeffs |
: a named list identifying function type and coefficient values |
sizes |
: vector of sizes at which to evaluate the function |
coeffs is a named list with the 1st element 'type' identifying the function type (e.g. 'logistic') and remaining elements as function coefficients (e.g., slope, z50).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.