parameter.accesors: Parameter accessor functions for FLSAM

parameter.accessorsR Documentation

Parameter accessor functions for FLSAM

Description

Returns parameters fitted by the FLSAM asessment model

Usage

params(object,...)
coef(object,...)
coefficients(object,...)

Arguments

object

An FLSAM or FLSAMs object.

...

Other arguments

Details

These accessor functions provide direct access to the values returned by the SAM model. However, interpretation of these parameters can be challenging and requires some knowledge of the underlying workings of the SAM model. For more access in a more user-friendly format, see the accessors help.

The following parameter accessor functions are currently supported:

  • params - returns all values estimated by the model, including derived parameters such as SSB, TSB, etc.

  • coef - returns the parameters fitted by the model, but not derived parameters such as SSB, TSB etc.

  • coefficients - an alias for coef

Accessor functions are provided for both FLSAM and FLSAMs objects.

Note that the naming of these parameters is somewhat obtuse. A brief description of these parameters follows:

  • logFpar: Log-transformed catchability of the numbers-at-age survey indices. The binding of these parameters are controlled in the 'catchabilities' slot of the FLSAM.control object.

  • logSdLogFsta: Log-transformed standard deviation of the random walk in the (log-transformed) fishering mortalities. Bindings are controlled in the 'f.vars' slot.

  • logSdLogN: Log-transformed standard deviation of the random walk in (log-transformed) N. Bindings are controlled in the logN.vars slot

  • logSdLogObs: Log-transformed observation variance for each data source. Bindings are controlled in the 'obs.vars' slot

  • logScaleSSB: Log-transformed catchability of the SSB indices

  • logSdSSB: Log-transformed observation variance of the SSB indices

  • rec_loga: Log-transformed 'a' parameter of the stock-recruitment model. Fitting of this parameter is controlled by the 'srr' slot

  • rec_logb: Log-transformed 'b' parameter of the stock-recruitment model. Fitting of this parameter is controlled by the 'srr' slot

  • rho: Correlation coefficient in the correlated random-walk in fishing mortality. Fitting of this parameter is controlled by the 'cor.F' slot

  • logPowSSB: Log-transformed power-law coefficient of the SSB catchability model.

  • U: The state variables. The order of the state variables is N(year 1),F(year 1, N(year 2), F(year 2), where N are the numbers-at-age state variables and F the fishing mortality state variables)

Not all parameters may be present in a fit, depending on the specific configuration of the FLSAM.control.

Value

The parameter accessor functions return a data.frame whoose length depends on the calling function. params() returns all values (both fitted and dervied parameters), whereas coef() and coefficients() only return the fitted parameters.

Columns returned are

  • object.name - In cases where an FLSAMs object is supplied, the name of the corresponding object is stored in this column. There is no requirement that FLSAMs object have unique names - however, extracting and processing data can be challenging if they do not!

  • index - An indexing number produced internally by SAM

  • name - The name of the parameter

  • value - The value of the parameter

  • std.dev - The standard deviation of the fitted parameter

Author(s)

Mark R. Payne

See Also

FLSAM, accessors

Examples

#Load data
library(FLSAM)
data(NSH.sam)
#Extract parameter
catchabilities(NSH.sam)
obs.var(NSH.sam)
ssb(NSH.sam)
fbar(NSH.sam)
rec(NSH.sam)
#Power law parameters could be extracted as follows, but this will
#return an error in this case, as there are no power-law exponents in the model
#power.law.exps(NSH.sam) 

#And for FLSAMs
data(HERAS.sams)
ssb(HERAS.sams)
rec(HERAS.sams)
fbar(HERAS.sams)

flr/FLSAM documentation built on April 18, 2024, 4:54 p.m.