data.SS_new
file containing expected values and sample from
true ages to get realistic proportions for the number of fish in each age
bin, then use the mean size-at-age and CV for growth to generate random
samples of size, which are then converted to weight and averaged to get mean
weight-at-age values. Missing ages and years are filled according to a
specified function. These matrices are then written to file for the EM. By
calling this function, ss3sim_base
for more details on how that is implemented.
If used with run_ss3sim
the case file should be named
wtatage
.sample_wtatage(wta_file_in, outfile, dat_list, ctl_file_in, years,
fill_fnc = fill_across, write_file = TRUE, fleets, cv_wtatage = NULL)
.wtatage.ss
file if write_file = TRUE
. A list
object containing the modified .wtatage.ss
file is returned invisibly.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.fill_across
Other sampling functions: clean_data
,
sample_agecomp
,
sample_calcomp
, sample_index
,
sample_lcomp
, sample_mlacomp