logist | R Documentation |
logist calcualtes a Logistic curve that can be used as a selectivity function, or maturity curve, of wherever a logistic is required. This version uses the logistic function 1/(1+exp(-log(19.0)*(lens-inL50)/(inL95-inL50))), which explicitly defines the SM50 and uses SM95 as the second parameter.
logist(inL50, delta, depend, knifeedge = 0)
inL50 |
is the length at 50 percent selection/maturity/whatever |
delta |
is the difference in selection/maturity/whatever between inL50 and inL95 |
depend |
a vector of lengths/ages for which the logistic value will be calculated. |
knifeedge |
defaults to 0. If knifeedge is set to a particular length or age then the logistic value <= the value of knifeedge is set to zero, which is essentially knife-edge. Allows for knife-edge selectivity |
A vector of length(depend) containing the predicted logistic values
## Not run:
in50 <- 100.0
deltaS <- 8.0
lens <- seq(2,210,2)
select <- logist(inL50=in50,delta=deltaS,depend=lens)
selectk <- logist(in50,deltaS,lens,knifeedge=105)
round(cbind(lens[35:70],select[35:70],selectk[35:70]),5)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.