replicate swo function and generate input sample sizes
Usage
swo_sim(
iters = 1,
lfreq_data,
specimen_data,
cpue_data,
strata_data,
yrs = NULL,
strata = FALSE,
boot_hauls = FALSE,
boot_lengths = FALSE,
boot_ages = FALSE,
length_samples = NULL,
age_samples = NULL,
sexlen_samples = NULL,
save = NULL,
write_interm = FALSE,
region = NULL
)
Arguments
- iters
number of iterations (500 recommended)
- lfreq_data
input dataframe
- specimen_data
input dataframe
- cpue_data
input dataframe
- strata_data
input dataframe
- yrs
any year filter >= (default = NULL)
- strata
switch for regional or by strata (default = FALSE)
- boot_hauls
resample hauls w/replacement (default = FALSE)
- boot_lengths
resample lengths w/replacement (default = FALSE)
- boot_ages
resample ages w/replacement (default = FALSE)
- length_samples
sample size by length (default = NULL)
- age_samples
proportion of sample size by age (default = NULL)
- sexlen_samples
sample size by sex-length (default = NULL)
- save
name to save a file
- write_interm
save the intermediate age/length comps, the new "unsexed/unsampled" samples, and original length/age pop'n ests
- region
region will create a folder and place results in said folder