bbmFLPar: Function to generate an FLPar for bbm function

View source: R/bbmFLPar_fun.R

bbmFLParR Documentation

Function to generate an FLPar for bbm function

Description

This function generates an FLPar object with the input parametes required by the bbm function, given information on the years, the indices names and the number of iterations.

Usage

bbmFLPar(x = NULL, years, namesB, namesP, niter = 1, logscale = FALSE)

Arguments

x

Input numeric values for the parameters. If not set, then NA value is assigned.

years

Names of the years used for fitting.

namesB

Names of the indices of total biomass.

namesP

Names of the indices of proportion of recruits in biomass.

niter

Number of iterations.

logscale

Logical, if TRUE the parameters are in the scale used by the bbm model, otherwise, all parameters are in the linear scale. This is used for example, in the vcov matrix retuned from bbm function.

Value

An FLPar with the appropriate format for the bbm function.

Author(s)

Leire Ibaibarriaga & Sonia Sanchez.

See Also

FLPar, bbm

Examples


# Load data
data(ane)

years.ane <- dimnames(catch.ane)$year
niter.ane <- dim(catch.ane)[6]
namesB.ane <- names(indicesB.ane)
namesP.ane <- names(indicesP.ane)

# Generate population estimates, given some estimated parameters
pars <- bbmFLPar( years=years.ane, namesB=namesB.ane, namesP=namesP.ane, niter=niter.ane)
class(pars)
pars
 

flr/bbm documentation built on Sept. 6, 2022, 8:56 p.m.