Usage
genLenComp(CAL_bins, CAL_binsmid, SL, CAL_ESS, CAL_nsamp, CN, LaA, LaASD,
truncSD)
Arguments
CAL_bins
vector of catch-at-length size bins
CAL_binsmid
vector (nbins = length(CAL_bins) - 1) of mid-points for catch-at-length size bins
SL
matrix (nbins, nyears) of selectivity-at-length class for each year
CAL_ESS
effective sample size of catch-at-length data
CAL_nsamp
sample size of catch-at-length data
CN
matrix (nyears, maxage) of catch-at-age for each year
LaA
matrix (maxage, nyears) of expected length-at-age for each year
LaASD
matrix (maxage, nyears) of standard deviation of length-at-age for each year
truncSD
optional argument to truncate the length-at-age distribution at `truncSD` standard deviations
e.g., a value of 2 truncates the length-at-age distribution at two standard deviations (set to 0 to ignore (default))