ca.sim: generates catch.n with lognormal annual and multinomial age...

View source: R/OMsim.R

ca.simR Documentation

generates catch.n with lognormal annual and multinomial age composition observation error

Description

generates catch.n with lognormal annual and multinomial age composition observation error

Usage

ca.sim(
  object,
  ess = 200,
  what = c("catch", "landings", "discards")[1],
  rescale = FALSE
)

Arguments

object

FLQuant

ess

effective sample size for age composition

what

c("catch", "landings", "discards")

rescale

rescale to the abudance scale of the input

sel

FLQuant with selectivity.pattern e.g. catch.sel()

Value

FLQuant with catch.n samples

Examples

data(ple4)
object = propagate(catch.sel(ple4),10)
ca = ca.sim(object,ess=200)
# Checks
ggplot(ca)+geom_line(aes(year,data,col=ac(iter)))+facet_wrap(~age)+
theme(legend.position = "none")+ylab("Index")

Henning-Winker/FLRef documentation built on June 12, 2025, 1:41 a.m.