simGrowth: Simulate individual growth trajectories based on a size...

View source: R/simGrowth.R

simGrowthR Documentation

Simulate individual growth trajectories based on a size transition matrix

Description

Function to simulate growth trajectories based on a size transition matrix.

Usage

simGrowth(
  ny = 21,
  zAtR = 1,
  M = 0.23,
  prGr = NULL,
  grCoeffs = NULL,
  prM2M = NULL,
  m2mCoeffs = NULL,
  sizes = seq(from = 25, to = 185, by = 1),
  showPlot = TRUE,
  normalize = FALSE
)

Arguments

ny

: number of years to simulate

zAtR

: size at recruitment

M

: annual rate of natural mortality

prGr

: size transition matrix

grCoeffs

: growth coefficients (if prGr is not given)

prM2M

: probability of molt-to-maturity

m2mCoeffs

: molt-to-maturity coefficients (if prM2M is not given)

sizes

: vector of size bins

showPlot

: flag to plot simulation

normalize

: flag to normalize annual size comps to 1

Details

Essentially calculates a cohort progression

Value

list with matrices nAtZI and nAtZM representing immature and mature crab abundance as a function of elapsed time.


wStockhausen/tcsamFunctions documentation built on Jan. 28, 2024, 9:01 a.m.