swo_sim | R Documentation |
replicate swo function and generate input sample sizes
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
)
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 |
effective sample sizes and imput sample sizes
## Not run:
swo_sim(iters=500, lfreq_data, specimen_data, cpue_data, strata_data, yrs = 2015,
strata = FALSE, boot_hauls = TRUE, boot_lengths = TRUE, boot_ages = FALSE,
length_samples = NULL, age_samples = NULL, sexlen_samples = NULL, save = "test",
write_interm = FALSE, region = "goa")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.