Skip to contents

Draws R samples from the same fishery with the same design (and artefacts), raises each, and compares the totals by species with the true landings.

Usage

replicate_design(
  fishery,
  design = cas_design(),
  R = 100,
  artefacts = NULL,
  route = "psu",
  year = max(fishery$years),
  seed = 1,
  progress = NULL
)

Arguments

fishery

A cas_fishery.

design

A cas_design.

R

Number of replicates.

artefacts

A cas_artefacts, or NULL.

route

Estimation route (see estimate_catch()).

year

Survey year.

seed

Seed; replicate r uses seed_for(seed, paste0("rep", r)).

progress

Optional function called with the replicate number.

Value

A cas_eval: reps (one row per replicate and species), summary

by species (true, mean estimate, relative bias, CV, coverage, RMSE), cost, and the design.