Learn R Programming

⚠️There's a newer version (6.0.6) of this package.Take me there.

DLMtool

DLMtool is a R package for management strategy evaluation and implementation of data-limited fishery stock assessment methods.

Find more information about DLMtool at http://datalimitedtoolkit.org/.

Installation

The released version of DLMtool can be downloaded from CRAN:

install.packages("DLMtool")

This GitHub repository contains the development version of DLMtool. The development version may be unstable, and it is not recommended for analyses.

User Guide

A User Guide for the DLMtool package is available: https://dlmtool.github.io/DLMtool/userguide/introduction.html.

Bugs and Issues

Please report any bugs or issues through GitHub or the DLMtool website.

Copy Link

Version

Install

install.packages('DLMtool')

Monthly Downloads

594

Version

5.4.5

License

GPL-2

Maintainer

Tom Carruthers

Last Published

June 16th, 2020

Functions in DLMtool (5.4.5)

CSRA

Catch at size reduction analysis
CSRAfunc

Optimization function for CSRA
CompSRA

Age-Composition Stock-Reduction Analysis
Cplot

Plot the median biomass and yield relative to last historical year
DBSRA

Depletion-Based Stock Reduction Analysis
CompSRA_

Internal function for CompSRA MP
DFO_tab

Create a standard DFO performance table
Converge

Check Convergence
CC

Age-based Catch Curve
CC1

Geromont and Butterworth (2015) Constant Catch
Cos_thresh_tab

Current default thresholds for COSEWIC satificing
DCACs

Depletion Corrected Average Catch
DD

Delay - Difference Stock Assessment
DFO_tab_formatted

A formatted version of the standard DFO performance plot, color coded by thresholds
AvC

Average Catch
Blow_opt

Blow internal parallel optimization function
DCAC_

Depletion Corrected Average Catch
BK

Beddington and Kirkwood life-history MP
AvC_MLL

Average Catch with a size limit
Data2csv

Converts a Data object into a .csv data file
BlankSelPlot

Internal function to create a blank plot for mapping selectivity at length
Data-class

Class 'Data'
CALsimp

Simplifies the CAL slot of data object
DFO_plot

Deparment of Fisheries and Oceans trade-off plot
ChkObj

Check that a DLM object is valid
DBSRA_

Depletion-based SRA internal function
CanMP

What Data objects can be used to run this MP?
CalcMPDynamics

Calculate population dynamics from MP recommendation
Choose

Manually map parameters for the historical period of operating model
DynF

Dynamic Fratio MP
ChkYrs

Check the years to summarize performance
DD_R

Delay-Difference Internal Function
EtargetLopt

Effort Target Optimum Length
DDe

Effort-based Delay - Difference Stock Assessment
DFO_plot2

Deparment of Fisheries and Oceans default plot 2
DFO_report

Create a standard DFO MSE report
DFO_proj

Deparment of Fisheries and Oceans projection plot
DD_

Delay-Difference Internal Function
DFO_bar

Deparment of Fisheries and Oceans stock status bar plot
DFO_hist

Deparment of Fisheries and Oceans historical plot
DFO_quant

Deparment of Fisheries and Oceans biomass quantile plot
Can

Identify management procedures (MPs) based on data availability
DBSRAopt

Internal optimization function
DFO_spider

DFO performance spider plot (top three MPs)
DataDescription

DataDescription
DLMextra

Load more data from DLMextra package
DLMDataDir

Directory of the installed package on your computer
Fdem

Demographic FMSY method
FleetDescription

FleetDescription
Fease

MP feasibility diagnostic
DLMenv

DLMenv blank environment
Fdem_

Internal function for Fdem MP
Gcontrol

G-control MP
DLMtool-package

Data-Limited Methods Toolkit
Fratio

FMSY/M ratio methods
Data_xl

Read in Data object from Excel spreadsheet
Imp-class

Class 'Imp'
Hist-class

Class 'Hist'
Dom

Determine dominate MPs
GB_CC

Geromont and Butterworth Constant Catch Harvest Control Rule
FilterSmooth

Kalman filter and Rauch-Tung-Striebel smoother
IOTC_plot

Indian Ocean Tuna Commission trade-off plot
DataInit

Initialize Data Input Files
Growth2OM

Generate bootstrapped estimates of von Bertalanffy growth parameters from length-at-age data
Fratio_

Fratio internal function
ImpDescription

ImpDescription
GB_target

Geromont and Butterworth target CPUE and catch MP
GB_slope

Geromont and Butterworth index slope Harvest Control Rule
ITM

Index Target based on natural mortality rate
DTe40

Effort searching MP aiming for a fixed stock depletion
FMSYref

Reference management procedures
Atlantic_mackerel

Data class objects
Input

Function to run a set of input control methods
Itargeteff_

Incremental Index Target MP Internal Function - Effort MP
ICI

Index Confidence Interval
ItargetE1

Incremental Index Target MP - Effort-Based
Fadapt

Adaptive Fratio
Itarget_

Incremental Index Target MP Internal Function
Itarget1

Incremental Index Target MP
IT_

Index Target Internal Function
IT5

Iterative Index Target MP
LH2OM

Predict missing life-history parameters
Itarget1_MPA

Itarget1 with an MPA
LW2OM

Estimate length-weight parameters from data
Iratio

Mean Index Ratio
LSRA_opt_cpp

Internal estimation function for LSRA and LSRA2 functions
L2A

Length to age conversion
LHdatabase

LHdatabase
LSRA

Estimates R0 using SRA to match current F estimates and avoid penalities for low stock sizes
LSRA2

Alternative version of LSRA that's a wrapper for LSRA_opt to return the right type of output (mode) using sapply
Ltarget1

Length Target TAC MP
LSRA_MCMC_sim

Internal SRA MCMC CPP code
Kplot

KOBE plot: a projection by projection plot of F/FMSY and B/BMSY
Report

Generate a Data Report
Replace

Replace an existing Stock, Fleet, Obs, or Imp object
LBSPR

Length-Based SPR MPs
LstepCC1

Step-wise Constant Catch
ITe5

Index Target Effort-Based
DecE_Dom

Fleet class objects
Fleet-class

Class 'Fleet'
MPStats

Calculate Statistics for MP Performance
MPtype

Management Procedure Type
Lratio_BHI

Mean length-based indicator MP of Jardim et al. 2015
LinInterp

Linear interpolation of a y value at level xlev based on a vector x and y
LstepCE1

Step-wise Constant Effort
SRAcomp

Plot simulation test of Stochastic SRA method
MCD

Mean Catch Depletion
LSRA_opt

Internal estimation function for LSRA and LSRA2 functions
OMexample

Copy example OM XL and OM Documentation
NOAA_plot

National Oceanographic and Atmospheric Administration default plot 1
LtargetE1

Length Target TAE MP
SRAsim

Simulates catch at age and catch history data for testing SRA methods
MSYCalcs

Internal function to calculate MSY Reference Points
ObsDescription

ObsDescription
NAor0

Is a value NA or zero.
OM-class

Class 'OM'
OneRep

Make stochastic variables certain for only one rep
OMinit

Initialize Operating Model
ML2D

Depletion and F estimation from mean length of catches
Overages

Imp class objects
StochasticSRA

Stochastic SRA construction of operating models
StochasticSRAcpp

Stochastic SRA construction of operating models
MSE-class

Class 'MSE'
Islope_

Index Slope Internal Function
Islope1

Index Slope Tracking MP
LBSPR_

Internal Estimation Function for LBSPR MP
Obs-class

Class 'Obs'
PMLimit

Create a table of Performance Limits and Performance Objectives
Generic_Obs

Obs class objects
MPurl

Get help topic URL
MSEDescription

MSEDescription
LBSPRgen

Internal estimation function for LBSPR MP
MRreal

Spatial closure and allocation management procedures
SPSRA

Surplus Production Stock Reduction Analysis
OMdoc

Generate OM Documentation Report
OMDescription

OMDescription
SketchFun

Manually map the historical relative fishing effort trajectory.
PWhisker

Performance Whisker Plot
Albacore

Stock class objects
SimulatedData

SimulatedData Data
SPSRA_

Surplus Production Stock Reduction Analysis Internal Function
PMobj-class

An object for storing data for analysis using data-limited methods
PerformanceMetric

Performance Metrics Methods
Tplot_old

Trade-off plots for an MSE object
VOIplot2

Value of Information Plot using PM functions
VOIplot

Yet another Value of Information Plot
RealFease

MP feasibility diagnostic using real data
boxplot.Data

Boxplot of TAC recommendations
Thresh_tab

Current default thresholds for DFO satificing
calcMean

Calculate Mean Probability
Rec-class

Class 'Rec'
Stock-class

Class 'Stock'
SampleCpars

Sample custom pars
Pplot2

A projection by projection plot of F/FMSY, B/BMSY, B/B0, and yield
Pplot

A projection by projection plot of F/FMSY and B/BMSY
TradePlot

Generic Trade-Plot Function
SampleFleetPars

Sample Fleet Parameters
SBT1

SBT simple MP
compplot

Generic comparison plot for simulation testing of Stochastic SRA method
condmet

Condition met?
plot.Data

Plot Data object
makeMeanMP

Create an MP that averages the results of multiple MPs
makePerf

Convert a OM object to one without observation or process error
plotObs

Plot the Observation object parameters
avail

What objects of this class are available
TradePlot_old

Generic Trade-off Plot
barplot.MSE

Plot a barplot of MSE results
Range

Standardize values
Rcontrol

Intrinsic rate of Increase MP
SPMSY

Catch trend Surplus Production MSY MP
SPslope

Slope in surplus production MP
YPR

Yield Per Recruit analysis to get FMSY proxy F01
SPmod

Surplus production based catch-limit modifier
curE

Fishing at current effort levels
cparscheck

Internal function of runMSE for checking that the OM slot cpars slot is formatted correctly
getsel

Calculate selectivity curve
ReqData

ReqData
YPR_

Internal function for YPR MPs
StockDescription

StockDescription
Required

What management procedures need what data
makeTransparent

Make colors transparent
gettempvar

Creates a time series per simulation that has a random normal walk with sigma
hist2

Wrapper for histogram function
cv

Calculate CV from vector of values
getAFC

Calculate age at first capture from length at first capture and growth
getBlow

Blow parallel optimization function
Sub

Subset MSE object by management procedure (MP) or simulation.
matlenlim

Size limit management procedures
iVB

Inverse von Bertalanffy
Turing

Turing Test
SampleImpPars

Sample Implementation Error Parameters
demographic2

Internal demographic function
Uses

Find the Management Procedures that use a particular data slot
VOI

Calculate Value Of Information
SubCpars

Subset an OM cpars slot
SampleObsPars

Sample Observation Parameters
SubOM

Subset a Stock, Fleet, Obs, or Imp object from an OM object
plotImp

Plot the Implementation object parameters
plotFleet

Plot the Fleet object parameters
SampleStockPars

Sample Stock parameters
getq3

optimize for catchability (q)
getr

Internal function to estimate r
join_plots

Plot several plots with a shared legend
plot.MSE

Plot MSE object
optQ

Optimize q for a single simulation
plot.pars

Plot Operating Model Object
plotFun

Print out plotting functions
Sense

Sensitivity analysis
label.class-class

Label class union for performance metric objects
plotOFL

A generic OFL plot for NOAA use
plotMPA

Plot the Historical Spatial Closures
show,PMobj-method

Show the output of a PM
plotOM

Plot the operating model (OM) object parameters
plotSelect

Plot the vulnerability and retention curves
TAC

Calculate TAC recommendations for more than one MP
XL2Data

Import a Data object from Excel file
TACfilter

TAC Filter
runCOSEWIC

COSEWIC MSE run using the correct MPs and projected time horizon
show,Rec-method

Show the output of a single MP recommendation
XL2OM

Load OM from Excel file
dnormal

Double-normal selectivity curve
alphaconv

Calculate parameters for beta distribution from mean and standard deviation in normal space
applyMP

Apply Management Procedures to an object of class Data
plotM

Plot M-at-Age and Size
VOI2

Calculate Value Of Information 2
sample_steepness2

Sample steepness given mean and cv
sampy

Sample vector
plotStock

Plot the Stock object parameters
checkMSE

Utility functions for MSE objects
cheatsheets

Opens the DLMtool Cheat-Sheets (requires internet connection)
getFref3

Calculate Reference Yield
joinData

Join Data objects present in a list
getEffhist

Calculate historical fishing mortality
initialize-methods

~~ Methods for Function initialize ~~
userguide

Open the DLMtool User Guide
getclass

get object class
getmov2

Optimization function to find a movement model that matches user specified movement characteristics modified for Rcpp.
movfit_Rcpp

Rcpp version of the Optimization function that returns the squared difference between user specified and calculated movement parameters.
optMSY

Optimize yield for a single simulation
validcpars

Valid custom parameters (cpars)
runMP

Run a Management Procedure
calcProb

Calculate Probability
char.log-class

Class union for isRel slot
optMSY_eq

Internal wrapper function to calculate MSY reference points
genSizeCompWrap

Wrapper for C++ function to generate length composition
runMSE

Run a Management Strategy Evaluation
summary,MSE-method

Summary of MSE object
prob.class-class

Prob class union for performance metric objects
summary,Data-method

Summary of Data object
wormplot

Biomass wormplot
optCPU

Determine optimal number of cpus
writeCSV

Internal function to write CSVs for objects
popdynCPP

Population dynamics model in CPP
popdynOneTScpp

Population dynamics model for one annual time-step
replic8

Enlarge (replicate) a DLM data object to create an additional dimension for simulation / sensitivity testing
testOM

testOM OM
tiny

tiny
sdconv

Get parameters of lognormal distribution from mean and standard deviation in normal space
setup

Setup parallel processing
simCAA

Simulate Catch-at-Age Data
simCAL

Simulate Catch-at-Length Data
runInMP

Runs input control MPs on a Data object.
tinyErr

Remove observation, implementation, and process error
trlnorm

Lognormal distribution for DLMtool