bbmControl | R Documentation |
bbmControl
class is used for setting the control parameters for the bbm
function.
bbmControl(object, ...) ## S4 method for signature 'missing' bbmControl(object, ...)
Instantaneous rate of biomass decrease, g = M - G, for recruits (rec) and adults (adult),
c(rec=numeric(1), adult=numeric(1))
.
An FLPar
with value 1 if the parameter is fixed at its initial value and 0 otherwise.
g
must be a vector of length 2 and with the names 'rec' and 'adult'
param.fix
must be of class FLPar
You can inspect the class validity function by using getValidity(getClassDef('bbmControl'))
All slots in the class have accessor methods defined that allow retrieving individual slots.
A construction method exists for this class that can take named arguments for any of its slots. All slots are then created to match the requirements of the class validity.
Leire Ibaibarriaga & Sonia Sanchez
bbm
# Load data data(ane) # Generate an object of FLPar class (different alternatives) bbmControl() # empty object slotNames(bbmControl()) # slots bbmControl( g=c(rec=0.68, adult=0.68), param.fix=FLPar(nyear=20, nindex=3)) # setting values for the slots # Run assessment (control must be of class bbmControl) class(control.ane) run <- bbm(catch.ane, indicesB=indicesB.ane, indicesP=indicesP.ane, control=control.ane, inits=inits.ane) run
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.