In Management Strategy Evaluation (MSE) an Operating Model (OM) is used to simulate resource dynamics in trials in order to evaluate the performance of a Management Procedure (MP). Where the MP is the combination of pre-defined data, together with an algorithm to which such data are input to provide a value for a management control measure.
The mpb package has various methods for developing MPs using a biomass dynamic stock assessment model.
The simplest way to obtain mpb is to install it from CRAN by using the following command in the R console:
So that users may have a better idea of what functions are available, which one to choose, or where to seek help, this section provides a general overview of the package. In particular it highlights the various elements, what they do, and provides some examples of usage. More details are given in later sections.
First, load the mpb package:
library(mpb)
library(plyr)
fwd(object, catch = NULL, harvest = NULL,
stock = NULL, hcr = NULL, pe = NULL, peMult = TRUE, minF = 0,
maxF = 2, bounds = list(catch = c(Inf, Inf)), lag = 0, end = NULL,
starvationRations = 0.75, ...)
bd=sim()
bd=fwd(bd,catch=FLQuant(125,dimnames=list(year=49:100)))
bd=fwd(bd,FLQuants("catch" =FLQuant(125,dimnames=list(year=49:100)),
"harvest"=FLQuant(.35,dimnames=list(year=49:100))))
plot(bd)
FLPKG at the FLPKG issue page,1 or on the FLR mailing list.FLPKG can always be installed using the devtools package, by calling library(devtools)
install_github('flr/FLPKG')