a4aFitResiduals
a4aFitResiduals-class.Rd
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 class 'a4aFit'
residuals(object, stock, indices, ...)
data(ple4)
data(ple4.index)
obj <- sca(stock=ple4, indices=FLIndices(ple4.index))
#> Warning: *** ~te(age, year, k = c(6, 30), bs = "tp") + s(age, k = 6) has 4 too many parameter(s)!!
#> i will remove the redundant ones:
#> s(age).2
#> s(age).3
#> s(age).4
#> s(age).5
flqs <- residuals(obj, ple4, FLIndices(idx=ple4.index))