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 are now 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

389

Version

5.3.1

License

GPL-2

Maintainer

Tom Carruthers

Last Published

April 29th, 2019

Functions in DLMtool (5.3.1)

CSRA

Catch at size reduction analysis
CompSRA_

Internal function for CompSRA MP
DCACs

Depletion Corrected Average Catch
DCAC_

Depletion Corrected Average Catch
DFO_proj

Deparment of Fisheries and Oceans projection plot
DFO_quant

Deparment of Fisheries and Oceans biomass quantile plot
Atlantic_mackerel

Data class objects
CC

Age-based Catch Curve
CC1

Geromont and Butterworth (2015) Constant Catch
AvC

Average Catch
AvC_MLL

Average Catch with a size limit
CanMP

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

Check that a DLM object is valid
ChkYrs

Check the years to summarize performance
Data-class

Class 'Data'
Cplot

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

Depletion-Based Stock Reduction Analysis
Choose

Manually map parameters for the historical period of operating model
DFO_report

Create a standard DFO MSE report
DD_R

Delay-Difference Internal Function
DFO_spider

DFO performance spider plot (top three MPs)
Blow_opt

Blow internal parallel optimization function
CALsimp

Simplifies the CAL slot of data object
DDe

Effort-based Delay - Difference Stock Assessment
DLMDataDir

Directory of the installed package on your computer
DLMenv

DLMenv blank environment
DFO_tab

Create a standard DFO performance table
Fdem

Demographic FMSY method
FMSYref

Reference management procedures
CalcMPDynamics

Calculate population dynamics from MP recommendation
Can

Identify management procedures (MPs) based on data availability
Fdem_

Internal function for Fdem MP
DFO_tab_formatted

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

Initialize an empty Data workbook or CSV
Data_xl

Read in Data object from Excel spreadsheet
GB_CC

Geromont and Butterworth Constant Catch Harvest Control Rule
Fadapt

Adaptive Fratio
DBSRA_

Depletion-based SRA internal function
Data2csv

Converts a Data object into a .csv data file
DataDescription

DataDescription
Fratio

FMSY/M ratio methods
DBSRAopt

Internal optimization function
GB_slope

Geromont and Butterworth index slope Harvest Control Rule
ITe5

Index Target Effort-Based
LBSPR

Length-Based SPR MPs
IT_

Index Target Internal Function
NOAA_plot

National Oceanographic and Atmospheric Administration default plot 1
NAor0

Is a value NA or zero.
LBSPR_

Internal Estimation Function for LBSPR MP
OM-class

Class 'OM'
OMDescription

OMDescription
Rec-class

Class 'Rec'
DynF

Dynamic Fratio MP
IT5

Iterative Index Target MP
DFO_bar

Deparment of Fisheries and Oceans stock status bar plot
DFO_hist

Deparment of Fisheries and Oceans historical plot
Fease

MP feasibility diagnostic
DLMextra

Load more data from DLMextra package
DLMtool-package

Data-Limited Methods Toolkit
FilterSmooth

Kalman filter and Rauch-Tung-Striebel smoother
ITM

Index Target based on natural mortality rate
Replace

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

Fleet class objects
EtargetLopt

Effort Target Optimum Length
SketchFun

Manually map the historical relative fishing effort trajectory.
Itarget_

Incremental Index Target MP Internal Function
SimulatedData

SimulatedData Data
StockDescription

StockDescription
FleetDescription

FleetDescription
Fleet-class

Class 'Fleet'
Fratio_

Fratio internal function
Kplot

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

Incremental Index Target MP Internal Function - Effort MP
ForceCor

Forces correlation among operating model parameters for M, K, Linf and L50
Sub

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

Index Slope Tracking MP
Iratio

Mean Index Ratio
VOI

Calculate Value Of Information
L2A

Length to age conversion
Growth2OM

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

Imp class objects
Imp-class

Class 'Imp'
VOI2

Calculate Value Of Information 2
Islope_

Index Slope Internal Function
alphaconv

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

Apply Management Procedures to an object of class Data
BK

Beddington and Kirkwood life-history MP
cparscheck

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

LHdatabase
curE

Fishing at current effort levels
Hist-class

Class 'Hist'
ImpDescription

ImpDescription
Itarget1

Incremental Index Target MP
LSRA

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

Internal function to create a blank plot for mapping selectivity at length
Converge

Check Convergence
LSRA2

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

optimize for catchability (q)
LSRA_MCMC_sim

Internal SRA MCMC CPP code
Input

Function to run a set of input control methods
Cos_thresh_tab

Current default thresholds for COSEWIC satificing
DD

Delay - Difference Stock Assessment
DFO_plot

Deparment of Fisheries and Oceans trade-off plot
DD_

Delay-Difference Internal Function
LW2OM

Estimate length-weight parameters from data
LstepCE1

Step-wise Constant Effort
getr

Internal function to estimate r
Lratio_BHI

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

Create an MP that averages the results of multiple MPs
LstepCC1

Step-wise Constant Catch
LBSPRgen

Internal estimation function for LBSPR MP
MPStats

Calculate Statistics for MP Performance
ML2D

Depletion and F estimation from mean length of catches
LinInterp

Linear interpolation of a y value at level xlev based on a vector x and y
PMobj-class

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

Management Procedure Type
DFO_plot2

Deparment of Fisheries and Oceans default plot 2
PWhisker

Performance Whisker Plot
DOM

How dominant is an MP?
DTe40

Effort searching MP aiming for a fixed stock depletion
GB_target

Geromont and Butterworth target CPUE and catch MP
MPurl

Get help topic URL
makePerf

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

Plot the Observation object parameters
OneRep

Make stochastic variables certain for only one rep
PMLimit

Create a table of Performance Limits and Performance Objectives
Ltarget1

Length Target TAC MP
LH2OM

Predict missing life-history parameters
LtargetE1

Length Target TAE MP
Rcontrol

Intrinsic rate of Increase MP
RealFease

MP feasibility diagnostic using real data
SPMSY

Catch trend Surplus Production MSY MP
SBT1

SBT simple MP
MCD

Mean Catch Depletion
plot.Data

Plot Data object
Gcontrol

G-control MP
MSEDescription

MSEDescription
StochasticSRA

Stochastic SRA construction of operating models
plotM

Plot M-at-Age and Size
SRAcomp

Plot simulation test of Stochastic SRA method
OMinit

Initialize Operating Model
SubCpars

Subset an OM cpars slot
StochasticSRAcpp

Stochastic SRA construction of operating models
MSYCalcs

Internal function to calculate MSY Reference Points
SubOM

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

Spatial closure and allocation management procedures
SRAsim

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

Plot the Historical Spatial Closures
runInMP

Runs input control MPs on a Data object.
Generic_Obs

Obs class objects
ICI

Index Confidence Interval
SPmod

Surplus production based catch-limit modifier
SPslope

Slope in surplus production MP
IOTC_plot

Indian Ocean Tuna Commission trade-off plot
MSE-class

Class 'MSE'
SampleImpPars

Sample Implementation Error Parameters
SampleStockPars

Sample Stock parameters
Obs-class

Class 'Obs'
TradePlot

Generic Trade-Plot Function
Sense

Sensitivity analysis
runMP

Run a Management Procedure
TradePlot_old

Generic Trade-off Plot
Thresh_tab

Current default thresholds for DFO satificing
boxplot.Data

Boxplot of TAC recommendations
calcMean

Calculate Mean Probability
VOIplot

Yet another Value of Information Plot
Tplot_old

Trade-off plots for an MSE object
dnormal

Double-normal selectivity curve
SampleObsPars

Sample Observation Parameters
VOIplot2

Value of Information Plot using PM functions
Itarget1_MPA

Itarget1 with an MPA
ItargetE1

Incremental Index Target MP - Effort-Based A management procedure that incrementally adjusts the fishing effort to reach a target CPUE / relative abundance index
TAC

Calculate TAC recommendations for more than one MP
LSRA_opt

Internal estimation function for LSRA and LSRA2 functions
TACfilter

TAC Filter
avail

What objects of this class are available
getAFC

Calculate age at first capture from length at first capture and growth
barplot.MSE

Plot a barplot of MSE results
LSRA_opt_cpp

Internal estimation function for LSRA and LSRA2 functions
getBlow

Blow parallel optimization function
compplot

Generic comparison plot for simulation testing of Stochastic SRA method
condmet

Condition met?
makeTransparent

Make colors transparent
getEffhist

Calculate historical fishing mortality
ObsDescription

ObsDescription
OMdoc

Generate OM Documentation Report
matlenlim

Size limit management procedures
plotImp

Plot the Implementation object parameters
OMexample

Copy example OM XL and OM Documentation
plot.OM

Plot the operating model (OM) object parameters
genSizeCompWrap

Wrapper for C++ function to generate length composition
Pplot2

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

Plot MSE object
PerformanceMetric

Performance Metrics Methods
getclass

get object class
Range

Standardize values
plotFun

Print out plotting functions
Pplot

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

Surplus Production Stock Reduction Analysis
sampy

Sample vector
getmov2

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

Calculate Reference Yield
SPSRA_

Surplus Production Stock Reduction Analysis Internal Function
movfit_Rcpp

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

Plot several plots with a shared legend
sdconv

Get parameters of lognormal distribution from mean and standard deviation in normal space
label.class-class

Label class union for performance metric objects
show,Rec-method

Show the output of a single MP recommendation
simCAA

Simulate Catch-at-Age Data
optMSY

Optimize yield for a single simulation
optMSY_eq

Internal wrapper function to calculate MSY reference points
popdynOneTScpp

Population dynamics model for one annual time-step
prob.class-class

Prob class union for performance metric objects
Required

What management procedures need what data
ReqData

ReqData
validcpars

Valid custom parameters (cpars)
runMSE

Run a Management Strategy Evaluation
SampleCpars

Sample custom pars
sample_steepness2

Sample steepness given mean and cv
optCPU

Determine optimal number of cpus
tinyErr

Remove observation, implementation, and process error
tiny

tiny
SampleFleetPars

Sample Fleet Parameters
XL2Data

Import a Data object from Excel file
Albacore

Stock class objects
plotStock

Plot the Stock object parameters
XL2OM

Load OM from Excel file
popdynCPP

Population dynamics model in CPP
Stock-class

Class 'Stock'
replic8

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

COSEWIC MSE run using the correct MPs and projected time horizon
wormplot

Biomass wormplot
calcProb

Calculate Probability
char.log-class

Class union for isRel slot
Turing

Turing Test
summary,MSE-method

Summary of MSE object
cheatsheets

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

Find the Management Procedures that use a particular data slot
checkMSE

Utility functions for MSE objects
testOM

testOM OM
getsel

Calculate selectivity curve
YPR

Yield Per Recruit analysis to get FMSY proxy F01
YPR_

Internal function for YPR MPs
cv

Calculate CV from vector of values
demographic2

Internal demographic function
gettempvar

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

Wrapper for histogram function
iVB

Inverse von Bertalanffy
optQ

Optimize q for a single simulation
initialize-methods

~~ Methods for Function initialize ~~
plotFleet

Plot the Fleet object parameters
joinData

Join Data objects present in a list
plotOFL

A generic OFL plot for NOAA use
plotSelect

Plot the vulnerability and retention curves
simCAL

Simulate Catch-at-Length Data
summary,Data-method

Summary of Data object
setup

Setup parallel processing
writeCSV

Internal function to write CSVs for objects
show,PMobj-method

Show the output of a PM
trlnorm

Lognormal distribution for DLMtool
userguide

Open the DLMtool User Guide
CSRAfunc

Optimization function for CSRA
CompSRA

Age-Composition Stock-Reduction Analysis