Learn R Programming

ss3sim (version 0.9.0)

sample_calcomp: Sample conditional age-at-length (CAL) data and write to file for use by the EM.

Description

Sample conditional age-at-length (CAL) data and write to file for use by the EM.

Usage

sample_calcomp(dat_list, outfile, fleets = c(1, 2), years,
  write_file = TRUE, Nsamp)

Value

  • A modified .dat file if write_file=TRUE. A list object containing the modified .dat file is returned invisibly.

Which arguments to specifiy in case files

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.

Details

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.

See Also

Other sampling functions: clean_data, sample_agecomp, sample_index, sample_lcomp, sample_mlacomp, sample_wtatage