prob_rebuilt_goal: Calculate the probability of reaching a rebuilding goal

Description Usage Arguments Value Examples

View source: R/23_prob_rebuilt_goal.R

Description

function that calculates the probability of recovery (in terms of 1+ numbers) to MNPL (or other population size) at rebuilt.yr years

Usage

1
prob_rebuilt_goal(traj, goal = 2000, rebuild.yr = 100)

Arguments

traj

a matrix of trajectories, with rows=nsims and cols=nyears

goal

rebuilding goal as an absolute number of animals

rebuild.yr

the year by which you want pop to be recovered (calculate probability that pop will recover to MNPL by rebuild.yr)

Value

- the probability that the stock will be rebuilt to the goal population size by year rebuilt.yr

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
lh.params <- list(
  S0 = 0.944, S1plus = 0.99, 
  AgeMat = 17,
  nages = 19, z = 2.39, 
  lambdaMax = 1.04, K1plus = 9000
)
Projection <- projections(
  NOut = 100,
  ConstantBycatch = list(Catch = 40, CV = 01),
  InitDepl = 0.3,
  lh.params = lh.params,
  nyears = 40, obs_CV = 0.2
)

ktmurray1219/mmrefpoints documentation built on Dec. 21, 2021, 8:40 a.m.