sampling.oem: Samples from an operating model to obtain catch, biology and...

View source: R/oem.R

sampling.oemR Documentation

Samples from an operating model to obtain catch, biology and abundance data

Description

This observation error model (OEM) function mimics the most common data collection regime, in which catch-at-age and biology is sampled from the population, and one or more indices of abundance are derived from surveys or CPUE data.

Usage

sampling.oem(
  stk,
  deviances,
  observations,
  stability = 1,
  wts = TRUE,
  args,
  tracking
)

Arguments

stk

An FLStock object as obtained by the call to stock(om).

deviances

A named list of deviances, see Details.

observations

A named list of observations, see Details.

args

Options and arguments passed on by mp().

tracking

The tracking object.

Details

The FLStock object passed to sampling.oem by the mp function is simplified to match the dimensions of that present in the observations slot.

Value

A named list with elements stk, idx, observations and tracking.

Author(s)

Iago Mosqueira (WUR) & Ernesto Jardim (MSC).

See Also

mp

Examples

data(sol274)
# Generate samples from year 2000:2016
sampling.oem(stock(om), deviances=deviances(oem),
  observations=observations(oem),
  args=list(y0=2000, dy=2021, frq=1), tracking=FLQuant())

flr/mse documentation built on Dec. 18, 2024, 10:38 p.m.