ppnAgeErr | R Documentation |
This function generates proporations at age with multivariate logistic error (Schnute and Richards 1995, eqns.S.9 and S.10). Includes an adjustment to skip calculations when dealing with populations that have fixed age struc- tures (e.g. pink salmon).
ppnAgeErr(ppnAgeVec, tau, error)
ppnAgeVec |
A numeric vector of proportions of individuals returning
at a given age. |
tau |
A numeric specifying the parameter representing average variation in proportions (e.g. observed interannual variation in age stracuture). |
error |
A numeric vector of length |
Returns a numeric vector of length nAges
representing pro-
portions for each class.
ppnAgeVec <- c(0.2, 0.4, 0.3, 0.1)
nAges <- length(ppnAgeVec)
tau <- 0.7
error <- runif(nAges, 0.0001, 0.9999)
ppnAgeErr(ppnAgeVec, tau, error)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.