Skip to contents

Rolls and raises the same design in each survey year (by default the last five years of the fishery), giving a time series of catch estimates.

Usage

run_survey(
  fishery,
  design = cas_design(),
  years = utils::tail(fishery$years, 5),
  artefacts = NULL,
  frame = c("annual", "first"),
  route = "psu",
  seed = 1
)

Arguments

fishery

A cas_fishery.

design

A cas_design.

years

Survey years (default: the last 5).

artefacts

A cas_artefacts, or NULL.

frame

"annual" (a new frame survey every year) or "first" (the frame survey of the first survey year is used throughout, so it goes out of date as boats enter and leave).

route

Estimation route (see estimate_catch()).

seed

Seed.

Value

A cas_survey: samples and estimates by year, years.

Examples

if (FALSE) {
fish <- cas_fishery(island_x(), seed = 1)
sv <- run_survey(fish, cas_design())
plot_series(sv, fish)
plot_series(sv, fish, by = "segment")
}