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])

Arguments

object

FLQuant

ess

effective sample size for age composition

what

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

sel

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

Value

FLQuant with catch.n samples

Examples

data(ple4)
object = propagate(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 July 14, 2024, 7:28 a.m.