View source: R/selFcn.DoubleNormal.R
selFcn.DoubleNormal | R Documentation |
Function to calculate (and optionally plot the components of) a double normal selectivity function.
selFcn.DoubleNormal(x, params, showPlot = FALSE, test = FALSE)
x |
: age/size bins at which to compute values |
params |
: vector of parameters (see Details) |
showPlot |
: flag (T/F) to plot components of function |
test |
: flag (T/F) to output list with detailed info (T) rather than just vector of sel function values (F) |
The params
vector elements are:
1: location of ascending peak
2: logistic scale width of plateau
3: ascending slope (NOT log scale; i.e. = exp(p[3]) if p[3] from SS)
3: descending slope (NOT log scale; i.e. = exp(p[4]) if p[4] from SS)
5: logistic scale value in initial bin; i.e. initial = 1./(1.+exp(-params[5]));
6: logistic scale value in final bin; i.e. final = 1./(1.+exp(-params[6]));
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.