a4aFit-class: S4 class 'a4aFit'

a4aFit-classR Documentation

S4 class a4aFit

Description

The a4aFit class was built to store the a4a stock assessment fits.

Usage

a4aFit(...)

a4aFit(...)

clock(object, ...)

## S4 method for signature 'a4aFit'
clock(object)

fitSumm(object, ...)

## S4 method for signature 'a4aFit'
fitSumm(object)

## S4 method for signature 'a4aFit'
stock.n(object)

## S4 method for signature 'a4aFit,ANY'
harvest(object)

## S4 method for signature 'a4aFit'
catch.n(object)

## S4 method for signature 'a4aFit'
index(object)

## S4 method for signature 'a4aFit'
show(object)

## S4 method for signature 'a4aFit'
logLik(object, ...)

## S4 method for signature 'a4aFit'
iter(obj, it)

a4aFits(object, ...)

## S4 method for signature 'list'
a4aFits(object, ...)

## S4 method for signature 'a4aFit'
a4aFits(object, ...)

## S4 method for signature 'missing'
a4aFits(object, ...)

## S4 method for signature 'a4aFit'
computeCatchDiagnostics(object, stock, ...)

Arguments

...

additional argument list that might never be used

object

object of relevant class (see signature of method)

obj

the object to be subset

it

iteration to be extracted

Slots

call

The function call

clock

Information on call duration

fitSumm

Fit summary

stock.n

Estimates of stock numbers-at-age

harvest

Estimates of fishing mortality at age

catch.n

Estimates of catch numbers-at-age

index

Estimates of survey or CPUE indices-at-age

Accessors

All slots in the class have accessor and replacement methods defined that allow retrieving and substituting individual slots.

The values passed for replacement need to be of the class of that slot. A numeric vector can also be used when replacing FLQuant slots, and the vector will be used to substitute the values in the slot, but not its other attributes.

Constructor

A construction method exists for this class that can take named arguments for any of its slots. All slots are then created to match the requirements of the class validity. If an unnamed FLQuant object is provided, this is used for sizing, but not for populating any slot.

Examples

data(ple4)
data(ple4.index)

obj <- sca(stock=ple4, indices=FLIndices(ple4.index))
obj

slotNames(obj)
clock(obj)
fitSumm(obj)

flq <- stock.n(obj)
is(flq)
flq <- index(obj)
is(flq)

logLik(obj)
AIC(obj)
BIC(obj)

flr/FLa4a documentation built on Dec. 21, 2024, 9:28 p.m.