calcSizeTransitionMatrix.LinearGrowthIncrement: Calculate a size transition matrix

View source: R/calcSizeTransitionMatrix.LinearGrowthIncrement.R

calcSizeTransitionMatrix.LinearGrowthIncrementR Documentation

Calculate a size transition matrix

Description

Function to calculate a size transition matrix

Usage

calcSizeTransitionMatrix.LinearGrowthIncrement(
  a = 0.7,
  b = 0.883118,
  beta = 0.75,
  maxDZ = 50,
  coeffs = NULL,
  sizes = seq(from = 27.5, to = 182.5, by = 5),
  showPlot = TRUE,
  log = FALSE,
  colors = grDevices::rainbow(1000)
)

Arguments

a

: "a" coefficient of linear growth increment

b

: "b" coefficient of linear growth increment

beta

: gamma distribution scale parameter

maxDZ

: max growth increment allowed (truncates potential growth)

coeffs

: list with coefficients a, b, beta, maxDZ

sizes

: size bins to include in matrix

showPlot

: flag (T/F) to plot matrix

log

: flag to plot ln-scale matrix (in conjunction w/ showPlot)

colors

: palette to plot matrix with

Details

Approximates the gamma cdf using the pdf, as in old TCSAM.

Value

matrix


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