Wrapper function to compute statistics of bootstrap resampling of age and length composition.

comp_stats(
  r_age,
  oga,
  r_length,
  ogl,
  specimen_data,
  lfreq_data,
  survey_region = NULL
)

Arguments

r_age

list of replicated abundance at age

oga

original abundance at age (computed with data that has not been resampled)

r_length

list of replicated abundance at length

ogl

original abundance at length (computed with data that has not been resampled)

specimen_data

age-length specimen input dataframe

lfreq_data

length frequency input dataframe

survey_region

overall region, i.e., goa, ai, ebs, nbs... If defined, will compute statistics for spatially-explicit results. (default = NULL)

Value

list of dataframes for realized sample size by replicate (.rss_age for age composition, .rss_length for length composition), input sample size (.iss_age for age composition, .iss_length for length composition), bias in resampled comp data compared to original values (.bias_age for age composition, .bias_length for length composition), and mean length-at-age (.mean_length, computed ala gapindex package)