Sample conditional age-at-length (CAL) data and write to file for use by the EM.
sample_calcomp(dat_list, outfile = NULL, fleets = c(1, 2), years,
Nsamp)
A modified .dat
file if !is.null(outfile)
. A list object
containing the modified .dat
file is returned invisibly.
All function argument descriptions that start with an asterisk (*) will be passed
through the case files to run_ss3sim
. If one of these arguments
is not specified in a case file, then a value of NULL
will be passed,
which may or may not be an appropriate value. Other arguments will be ignored
if specified.
Take a data.SS_new
file containing expected values and
sample from true lengths, using length comp sample sizes, to get
realistic sample sizes for age bins given a length. Only the multinomial
distribution is currently implemented. xIf no fish are sampled then that
row is discarded. A value of NULL for fleets indicates to delete the
data so the EM If used with run_ss3sim
the case file
should be named calcomp
.
Other sampling functions: clean_data
,
sample_agecomp
, sample_index
,
sample_lcomp
, sample_mlacomp
,
sample_wtatage