View source: R/27_rebuild_by_x.R
rebuild_by_x | R Documentation |
Takes a performance goal (what level you want to rebuild to) and a time window (how long you want that to take) and calculates what the bycatch rate needs to be
rebuild_by_x( needf.start, init.depl.w, goal.w, desired.prob.w, when.w, lh.params.w, fixed.cv.catch.w )
needf.start |
Starting guess for the bycatch mortality rate needed to recover the population |
init.depl.w |
Initial depletion (a fraction) |
goal.w |
Population size goal (number of whales or pinnipeds) to rebuild to, expressed as a whole number |
desired.prob.w |
What probability you want (e.g., 0.75 probability that the population will rebuild to X in Y years) |
when.w |
The year Y when rebuilding is desired by (number of years into future; current year = 0) |
lh.params.w |
A list of life history parameters used by |
fixed.cv.catch.w |
The CV of the bycatch rate - should be fixed |
The bycatch rate that will result in the specified rebuilding goal. If Shiny is running, it will return a list containing the bycatch rate f
and a matrix of guesses that optim()
has searched through to find the solution.
rebuild_by_x( needf.start = 0.001, init.depl.w = 0.5, goal.w = 4500, desired.prob.w = 0.8, when.w = 100, lh.params.w = list( S0 = 0.944, S1plus = 0.99, AgeMat = 17, nages = 19, z = 2.39, lambdaMax = 1.04, K1plus = 9000 ), fixed.cv.catch.w = 0 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.