stdlogres-methods: Standardized log residuals

stdlogresR Documentation

Standardized log residuals

Description

Method to compute the standardized residuals on the log scale for index- and catch-at-age residuals in the a4a stock assessment framework.

Usage

stdlogres(obs, fit, ...)

## S4 method for signature 'FLQuant,FLQuant'
stdlogres(obs, fit, ...)

Arguments

obs

an FLQuant object with the observations

fit

an FLQuant object with the fitted value

...

additional argument list that might never be used

Value

an FLQuant with stardardized log residuals

Examples

data(ple4)
data(ple4.index)
obj <- sca(ple4, FLIndices(ple4.index))
flqs <- residuals(obj, ple4, FLIndices(idx=ple4.index))
stdlogres(catch.n(ple4), catch.n(obj))
# which is the same as the following (because residuals() uses stdlogres):
flqs$catch.n
# check:
stdlogres(catch.n(ple4),catch.n(obj)) - flqs$catch.n

flr/FLa4a documentation built on June 4, 2023, 11:05 a.m.