a4aLAK: Convert length frequency to age composition data

Description Usage Arguments Value

View source: R/a4aLAK.R

Description

Converts a data.frame of multi-annual length frequency into age composition data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
a4aLAK(
  Ldat,
  linf = 100,
  k = 0.2,
  t0 = -0.5,
  cvL = 0.15,
  ages = 0:5,
  sd.fix = FALSE,
  plot = FALSE,
  aW = NULL,
  bW = NULL
)

Arguments

Ldat

a matrix with two columns, where each row specifies the lower and upper length for a given length bin (the lowest should be -Inf, and highest Inf)

linf

Infinitve length

k

Brody growth coefficient

t0

theoretical age at zero Length

cvL,

CV of mean length-at-age

ages

desired age range

sd.fix

if TRUE a fix sd at length-at-age is assumed corresponding to 0.5*Linf

aW

parameter of length-weight in mm

bW

parameter of length-weight relationship

Value

AgeComp_at, a matrix of expected age-composition data, where columns are samples in year t, and cells are the count of samples with a given age and year


Henning-Winker/a4adiags documentation built on Sept. 14, 2020, 9:33 a.m.