simCAL: Simulate Catch-at-Length Data

Description Usage Arguments Value

View source: R/Misc_Internal.R

Description

Simulate CAL and calculate length-at-first capture (LFC), mean length (ML), modal length (Lc), and mean length over modal length (Lbar)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
simCAL(
  nsim,
  nyears,
  maxage,
  CAL_ESS,
  CAL_nsamp,
  nCALbins,
  CAL_binsmid,
  vn,
  retL,
  Linfarray,
  Karray,
  t0array,
  LenCV
)

Arguments

nsim

Number of simulations

nyears

Number of years

maxage

Maximum age

CAL_ESS

CAA effective sample size

CAL_nsamp

CAA sample size

nCALbins

number of CAL bins

CAL_binsmid

mid-points of CAL bins

vn

Vulnerable numbers-at-age

retL

Retention at length curve

Linfarray

Array of Linf values by simulation and year

Karray

Array of K values by simulation and year

t0array

Array of t0 values by simulation and year

LenCV

CV of length-at-age#'

Value

named list with CAL array and LFC, ML, & Lc vectors


DLMtool/DLMtool documentation built on June 20, 2021, 5:20 p.m.