The a4aFitResiduals class extends FLQuants to store residuals of the a4a stock assessment fit. By default, these should be log residuals of catches and indices.

# S4 method for a4aFit
residuals(object, stock, indices, ...)

Arguments

object

object of relevant class (see signature of method)

stock

FLStock object used to fit the model

indices

FLIndices object used to fit the model

...

additional argument list that might never be used

Examples

data(ple4)
data(ple4.index)
obj <- sca(stock=ple4, indices=FLIndices(ple4.index))
flqs <- residuals(obj, ple4, FLIndices(idx=ple4.index))