Package: mpb 3.5.4

Laurence Kell

mpb: Management Procedures

mpb is an R package for running and simulation testing biomass based stock assessment models.

Authors:Laurence Kell [aut, cre]

mpb_3.5.4.tar.gz
mpb_3.5.4.zip(r-4.7-any)mpb_3.5.4.zip(r-4.6-any)mpb_3.5.4.zip(r-4.5-any)
mpb_3.5.4.tgz(r-4.6-any)
mpb_3.5.4.tar.gz(r-4.7-any)mpb_3.5.4.tar.gz(r-4.6-any)
mpb_3.5.4.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
mpb/json (API)

# Install 'mpb' in R:
install.packages('mpb', repos = c('https://flr.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/lauriekell/mpb/issues

On CRAN:

Conda:

4.21 score 54 scripts 104 exports 35 dependencies

Last updated from:e40abde185. Checks:7 ERROR, 1 FAIL, 1 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-develERROR172
source / vignettesERROR290
linux-releaseERROR199
macos-releaseERROR160
macos-oldrelFAIL86
windows-develERROR164
windows-releaseERROR165
windows-oldrelERROR165
wasm-releaseOK114

Exports:aspicaspicsbiodynbiodyn2cmpbmsybootchkIterscmpACFcmpAssesscmpFitcmpHindcastcmpHindcastDFcmpKobecmpMASEcmpPriorscmpProcesscmpProductioncmpQQcmpRetrocmpRunscmpStatuscmpTScontrolcontrol<-controlFndiagsdiagsFnfapexAgefeasiblefitflbrp2cmpfmsyfnProfilefwdharvesthcrhcrParamhrateis.aspicis.biodynjabba2biodynjabba2cmpjkKkobemfclGrwmixnormmohnsRhomseBiodynmsymvnnllnmcFnpplotplotCcfplotEqlplotHcrplotIndexplotIndexResidualplotJackplotMSEfnplotPEplotProductionplotSpictACFplotSpictFitplotSpictHindcastplotSpictKobeplotSpictPriorsplotSpictProcessplotSpictProductionplotSpictQQplotSpictRetroplotSpictRunsplotSpictStatusplotSpictTSprdResidproductionprofileFnrandFnrandJackFnreadAspicrebuildTimerecoverBDrefptsrefptSDresamplerunsTestsetControl<-setMPsetParams<-simspict2biodynspict2cmpspict2FLQuantsspictInpspictParspictPrdspictPriorsspictTStactimeSerieswriteAspicxval

Dependencies:clicowplotcpp11data.tablefarverFLBRPFLCoreggplot2ggplotFLggrepelgluegridExtragtableisobanditeratorslabelinglatticelifecyclemagrittrMASSMatrixpatchworkplyrR6RColorBrewerRcppreshaperlangS7scalesstringistringrvctrsviridisLitewithr

Comparing assessment methods with common ggplot2/ggplotFL plots
Introduction | Assessments | Age-structured assessment and FLBRP | SPiCT | JABBA | Time series | Kobe phase plot | Production functions | Fits to the data | Residuals | Process residuals | Retrospective analysis | Hindcast cross-validation | Priors and posteriors

Last update: 2026-10-15
Started: 2026-10-15

Fitting SPiCT with priors derived from an FLBRP
Introduction | Stock | Equilibrium reference points | Priors from the FLBRP | SPiCT input | Fit | Convergence | Prior and posterior | Residuals | Retrospective analysis | SPiCT compared with the FLBRP | Comparison figures | Trajectories | Production functions | Process error | Coercing to biodyn | Recovery from 0.3BMSY at zero catch | Notes | Session information | References

Last update: 2026-10-15
Started: 2026-10-15

ggplot2 and ggplotFL plots for SPiCT fits
Introduction | Fit | Time series | As FLQuants | Kobe phase plot | Production function | Model fit | Residuals | One-step-ahead residuals | Process residuals | Retrospective analysis | Hindcast cross-validation | Priors and posteriors | References

Last update: 2026-10-15
Started: 2026-10-15

Readme and manuals

Help Manual

Help pageTopics
Returns length age data from Multifan-CL as a list with four data framesalkMFCL
as("biodyn", "FLStock")as
aspic constructoraspic aspic,ANY,ANY-method aspic,ANY-method aspic,character-method aspic,data.frame-method aspic,missing-method aspic-method
ASPIC Biomass Dynamic Model Classaspic,biodyn,FLQuant-method aspic,biodyn,FLQuants,FLQuant-method aspic,biodyn,FLQuants-method aspic,character,missing,FLQuant-method aspic,character,missing-method aspic,data.frame,missing,FLQuant-method aspic,data.frame,missing-method aspic,FLQuant-method aspic,FLStock,missing-method aspic,missing,missing,FLQuant-method aspic,missing,missing-method aspic-class catch,aspic-method catch<-
aspicsaspics aspics,ANY-method aspics,aspic-method aspics,character-method aspics,list-method aspics,missing-method aspics-method aspics-methods
aspics a class that contains a list of ASPIC biomass dynamic stock assessment model classesaspics-class
biodyn constructorbiodyn
biodyn classbiodyn,character,FLPar-method biodyn,character,missing-method biodyn,factor,FLPar-method biodyn,factor,missing-method biodyn,FLQuant,FLPar-method biodyn,FLQuant,missing-method biodyn,FLStock,FLPar-method biodyn,FLStock,missing-method biodyn,missing,FLPar-method biodyn,missing,missing-method biodyn-class
Create biodyn Object from FLPar Parametersbiodyn,FLPar,missing-method
Convert a biodyn to a cmpAssessbiodyn2cmp
biodyns creates a list of biodyn objectsbiodyns,biodyn-method
fitboot fit,aspic,missing-method
boot, Bootstraps biodyn.boot,aspic-method boot,aspics-method boot,biodyn-method boot-method
Autocorrelation of residuals for one or more assessmentscmpACF
Common assessment summary for comparing methodscmpAssess
Observed and fitted values of one or more assessmentscmpFit
Hindcast cross-validation of one or more assessmentscmpHindcast
Hindcast predictions from retrospective peelscmpHindcastDF
Kobe phase plot for one or more assessmentscmpKobe
Mean absolute scaled errorcmpMASE
Prior and posterior densities for one or more assessmentscmpPriors
Process residuals with runs tests for one or more assessmentscmpProcess
Production functions of one or more assessmentscmpProduction
Normal QQ plot of residuals for one or more assessmentscmpQQ
Retrospective analysis of one or more assessmentscmpRetro
Observation residuals with runs tests for one or more assessmentscmpRuns
Stock status of one or more assessmentscmpStatus
Time series of one or more assessmentscmpTS
controlcontrol,biodyn-method
control<-control<-,biodyn,FLPar-method
controlFncontrolFn
paramsdiags setParams<-,aspic,data.frame-method setParams<-,biodyn,data.frame-method setParams<-,biodyn,FLPar-method setParams<-,biodyn,FLQuant-method setParams<-,biodyn,FLQuants-method
fitdiagsFn fit,aspics,missing-method fit,biodyn,FLQuantJK-method fit,biodyn,FLQuantJKs-method fit,FLPar,FLQuant-method
mngaspic,missing biodyn,missing fapexAge timeSeries timeSeries,aspic,missing-method timeSeries,biodyn,missing-method timeSeries,FLStock,FLBRP-method timeSeries,FLStocks,FLBRP-method timeSeries,FLStocks,FLBRPs-method timeSeries-method
feasiblefeasible feasible,biodyn,missing-method feasible,data.frame,FLQuant-method feasible,FLPar,FLQuant-method
fitfit fit,aspic-method fit,aspics-method fit,biodyn,FLQuant-method fit,biodyn,FLQuants-method
-mcmc 100000 -mcsave 100'fitPella
Convert an age-structured assessment (FLStock and FLBRP) to a cmpAssessflbrp2cmp
Class FLQuantJKsFLQuantJKs FLQuantJKs,ANY-method FLQuantJKs,FLQuantJKs-method FLQuantJKs,list-method FLQuantJKs,missing-method FLQuantJKs-class FLQuantJKs-methods
fnProfilefnProfile
fwdfwd,biodyn,FLQuants,missing fwd,biodyn,FLQuants-method fwd,biodyn,missing,missing fwd,biodyn,missing,missing-method fwd,biodyn,missing-method fwd,FLPar,missing,missing fwd,FLPar,missing-method fwd-method
harvestharvest harvest,aspic-method harvest,biodyn,missing-method harvest,biodyn-method
hcrhcr,biodyn,FLPar-method hcr,biodyn-method hcr,FLStock,FLBRP-method
hcrParamhcrParam
hratehrate hrate,aspic-method hrate,biodyn-method
is.aspicis.aspic
is.biodynis.biodyn
Coerce a JABBA fit to a biodynjabba2biodyn
Convert a JABBA fit to a cmpAssessjabba2cmp
jkchkIters jk jk,aspic-method jk,biodyn,FLQuant-method jk,biodyn,FLQuants-method
Carrying capacityK
kobekobe kobe,biodyn,missing-method kobe,biodyns,ANY-method kobe,biodyns,missing-method
Returns von Bertalannfy growth parameters from Multifan-CLmfclGrw
mixnormmixnorm
Mohn's rhomohnsRho
mseBiodynmse mseBiodyn
mvnmvn
nllnll,biodyn,FLQuant,missing-method nll,biodyn,FLQuants,missing-method nll,FLQuant,FLQuant,FLPar-method nll,FLQuant,FLQuants,FLPar-method
nmcnmcFn
omom
plotplot,aspics,missing plot,biodyn,missing-method plot,biodyns,missing-method plotCcf,biodyns,missing-method plotCcf,FLQuants-method plotEql,biodyn,FLQuant plotIndex,biodyn
plotEqlplotEql,biodyn,missing-method
plotHcrplotHcr,biodyn-method plotHcr-method
plotIndexplotIndex,aspic,missing-method plotIndex,biodyn,missing-method plotIndex,FLQuants,missing-method plotIndex,FLQuants-method
plotIndexResidualplotIndexResidual,aspic,missing-method plotIndexResidual,biodyn,missing-method plotIndexResidual,FLQuants,missing-method plotIndexResidual,FLQuants-method
plotJackplotJack
plotMSEharvest'=catch(om)/stock(om)%/%(brp@refpts['msy','yield']/brp@refpts['msy','biomass']), plotMSE,biodyn,FLStock,FLBRP-method plotMSEfn
plot aspics,missing plotIndex aspic plotIndex aspicsplotProduction plotProduction,biodyn,FLBRP-method plotProduction,biodyn,FLQuant-method plotProduction,biodyn,missing-method plotProduction,biodyns,missing-method
Plots of a SPiCT fitplotSpict plotSpictACF plotSpictFit plotSpictHindcast plotSpictKobe plotSpictPriors plotSpictProcess plotSpictProduction plotSpictQQ plotSpictRetro plotSpictRuns plotSpictStatus plotSpictTS
productionproduction,biodyn,FLQuant production,biodyn-method production,FLStock,missing productionFn
profileprofileFn
randnumeric,biodyn,biodyn-method numeric,FLPar,FLPar-method numeric,FLQuant,FLQuant-method rand, rand,numeric,biodyn,biodyn-method rand,numeric,biodyn-method rand,numeric,FLPar,FLPar-method rand,numeric,FLQuant,FLQuant-method rand-method randFn
randJackrandJack,numeric,biodyn,biodyn-method randJack,numeric,biodyn-method randJack,numeric,FLPar,FLPar-method randJack,numeric,FLQuant,FLQuant-method randJack-method randJackFn
readAspicreadAspic readAspic,character-method
Calculate Rebuild TrajectoriesrebuildTime
msy reference pointsbmsy bmsy,aspic-method bmsy,biodyn-method bmsy,FLPar-method bmsy-method fmsy fmsy,aspic-method fmsy,biodyn-method fmsy,FLPar-method fmsy-method msy msy,aspic,missing-method msy,aspic-method msy,biodyn-method msy,FLPar-method msy-method refpts,aspic,missing-method refpts,biodyn,missing-method refpts,character,FLPar-method refpts,factor,FLPar-method refpts,FLPar,missing-method refptSD refptSD,biodyn,missing-method refptSD,character,FLPar-method refptSD,factor,FLPar-method
resampleresample,FLPar-method resample,FLQuant-method
Runs test on residualsrunsTest
setControl<-setControl<-,aspic,FLPar-method setControl<-,biodyn,FLPar-method setControl<-,biodyn,FLQuant-method setControl<-,biodyn,FLQuants-method
setParams<-biodyn,biodyn,data.frame-method biodyn,biodyn,FLQuant-method biodyn,biodyn,FLQuants-method biodyn,FLPar-method setParams<- setParams<-,
simsim,FLStock,ANY-method sim,missing,missing-method sim-method
SPiCT helpers: priors from an FLBRP, input from an FLStock, coercion to biodyn, process-error diagnostics and recovery at zero catchplotPE prdResid recoverBD spict-helpers spict2biodyn spictInp spictPar spictPrd spictPriors
Convert a SPiCT fit to a cmpAssessspict2cmp
Coerce a SPiCT fit to FLQuantsspict2FLQuants
Time series of a SPiCT fit as a data.framespictTS
tac ,tac tac,biodyn-method tac-method
tstimeSeries,FLStock,FLPar-method ts,biodyn,FLPar-method ts,FLStock,FLBRP-method ts,FLStock,FLPar-method ts,FLStocks,FLBRP-method ts,FLStocks,FLBRPs-method
writeAspicwriteAspic writeAspic,aspic-method
xvalxval,biodyn,ANY-method xval,biodyn-method xval-method
xvalxval,biodyn,missing-method