FLSR-class {FLCore}R Documentation

Class FLSR

Description

A class for stock-recruitment data and models

Objects from the Class

Objects can be created by calls of the form new("FLSR", ...) or through the constructor function FLSR().

Slots

name:
the name of the stock.
desc:
a description of the data.
model:
name of the stock-recruitment relationship used in the model.
ssb:
a FLQuant object with Spawning Stock Biomass data.
rec:
a FLQuant object with recruitment data.
rechat:
a FLQuant object with estimated recruitment.
residuals:
a FLQuant object with recruitment residuals.
params:
a matrix containing the parameters of the SR relationship.
se:
a numeric vector containing the standard error of the SR parameters.
covar:
the covariance matrix of the SR parameters.
var:
the variance of log-residuals.
varacorr:
the residual variance after auto-correlation has been taken out.
aic:
the Akaike Information Criterion index.
mcmc:
a list with all the MCMC information required for the Bayesian runs.

Methods

plot
signature(obj = "FLSR"): Plots different graphs related to the fit of the SR model to SR data.
predict
signature(obj = "FLStock", ssb = c('numeric', "FLQuant")): Predicts recruitment values from the model parameters estimates contained in an FLSR object, and an SSB value. If ssb is of class FLQuant, predict returns another FLQuant. If a numeric vector is input, a vector of the same length is returned.
summary
signature(obj = "FLSR"):Prints a detailed summary of the slots in the object, indicating whether they contain any data and the number of years, quants, areas, units and seasons specified.
qapply
signature(X = "FLSR", FUN = "function"): Apply a function to all FLQuant slots in an object

Author(s)

FLR Team

See Also

sr function fits different stock-recruitment models to the data stored in the 'FLSR' objects. as.FLSR creates an 'FLSR' object from a 'FLStock' or 'FLBiol' object. FLStock-class, FLBiol-class.

Examples

    data(ple4)

    fsr <- as.FLSR(ple4, model = "ricker")
    fsr <- sr(fsr)
    plot(fsr)
    params(fsr)


[Package FLCore version 1.4-3 Index]