calcPop | R Documentation |
This function estimates abundances in mass at age (for recruits and adults) by period, given information on growth, periods duration, catches and some additional values.
calcPop(g, f, catch, inits)
g |
A |
f |
A |
catch |
An |
inits |
An |
A list
with two elements: stock.bio
, with information on estimated stock (FLQuant
);
and ok
, an indicator on whether estimated parameters are valid (i.e. positive, ok==TRUE
) or not (ok==FALSE
).
Leire Ibaibarriaga & Sonia Sanchez.
FLPar, bbmFLPar
# Load required libraries library(bbm) # Load data data(ane) # Generate population estimates, given some estimated parameters findicesB.ane <- unlist(lapply( indicesB.ane, function(x) mean(range(x)[c('startf','endf')]))) findicesP.ane <- unlist(lapply( indicesP.ane, function(x) mean(range(x)[c('startf','endf')]))) bioAge <- calcPop(g=control.ane@g, f=periods( findicesB=findicesB.ane, findicesP=findicesP.ane)$f, catch=catch.ane, inits=inits.ane) class(bioAge) # Check if valid ouput (i.e. positive biomass values) bioAge$ok # Estimates bioAge$stock
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.