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

594

Version

5.4.1

License

GPL-2

Maintainer

Tom Carruthers

Last Published

December 6th, 2019

Functions in DLMtool (5.4.1)

AvC

Average Catch
CC1

Geromont and Butterworth (2015) Constant Catch
BlankSelPlot

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

Beddington and Kirkwood life-history MP
CSRA

Catch at size reduction analysis
AvC_MLL

Average Catch with a size limit
ChkYrs

Check the years to summarize performance
Choose

Manually map parameters for the historical period of operating model
DD

Delay - Difference Stock Assessment
CalcMPDynamics

Calculate population dynamics from MP recommendation
DDe

Effort-based Delay - Difference Stock Assessment
Can

Identify management procedures (MPs) based on data availability
DD_R

Delay-Difference Internal Function
CanMP

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

Delay-Difference Internal Function
Cos_thresh_tab

Current default thresholds for COSEWIC satificing
Converge

Check Convergence
DFO_plot

Deparment of Fisheries and Oceans trade-off plot
Cplot

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

Age-Composition Stock-Reduction Analysis
CompSRA_

Internal function for CompSRA MP
ChkObj

Check that a DLM object is valid
DBSRA

Depletion-Based Stock Reduction Analysis
DCACs

Depletion Corrected Average Catch
DFO_tab_formatted

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

Adaptive Fratio
DataInit

Initialize Data Input Files
FMSYref

Reference management procedures
DataDescription

DataDescription
DCAC_

Depletion Corrected Average Catch
DFO_tab

Create a standard DFO performance table
DBSRA_

Depletion-based SRA internal function
GB_target

Geromont and Butterworth target CPUE and catch MP
DFO_proj

Deparment of Fisheries and Oceans projection plot
DLMDataDir

Directory of the installed package on your computer
DecE_Dom

Fleet class objects
Fease

MP feasibility diagnostic
DLMenv

DLMenv blank environment
DFO_quant

Deparment of Fisheries and Oceans biomass quantile plot
FilterSmooth

Kalman filter and Rauch-Tung-Striebel smoother
Gcontrol

G-control MP
Overages

Imp class objects
DFO_bar

Deparment of Fisheries and Oceans stock status bar plot
Fleet-class

Class 'Fleet'
Data-class

Class 'Data'
Data2csv

Converts a Data object into a .csv data file
DFO_plot2

Deparment of Fisheries and Oceans default plot 2
IT_

Index Target Internal Function
DFO_hist

Deparment of Fisheries and Oceans historical plot
DLMextra

Load more data from DLMextra package
DLMtool-package

Data-Limited Methods Toolkit
DynF

Dynamic Fratio MP
Iratio

Mean Index Ratio
ITe5

Index Target Effort-Based
Data_xl

Read in Data object from Excel spreadsheet
Itarget1

Incremental Index Target MP
GB_CC

Geromont and Butterworth Constant Catch Harvest Control Rule
EtargetLopt

Effort Target Optimum Length
Islope_

Index Slope Internal Function
Imp-class

Class 'Imp'
LSRA2

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

Index Slope Tracking MP
LSRA_MCMC_sim

Internal SRA MCMC CPP code
Kplot

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

Geromont and Butterworth index slope Harvest Control Rule
LstepCC1

Step-wise Constant Catch
OM-class

Class 'OM'
MPurl

Get help topic URL
Lratio_BHI

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

Management Procedure Type
Fratio

FMSY/M ratio methods
Dom

Determine dominate MPs
IT5

Iterative Index Target MP
Fratio_

Fratio internal function
ICI

Index Confidence Interval
SPMSY

Catch trend Surplus Production MSY MP
Pplot2

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

Surplus Production Stock Reduction Analysis
OMDescription

OMDescription
Range

Standardize values
Input

Function to run a set of input control methods
ITM

Index Target based on natural mortality rate
L2A

Length to age conversion
LBSPR

Length-Based SPR MPs
ImpDescription

ImpDescription
DBSRAopt

Internal optimization function
DFO_report

Create a standard DFO MSE report
DFO_spider

DFO performance spider plot (top three MPs)
LSRA_opt

Internal estimation function for LSRA and LSRA2 functions
LSRA_opt_cpp

Internal estimation function for LSRA and LSRA2 functions
MPStats

Calculate Statistics for MP Performance
ML2D

Depletion and F estimation from mean length of catches
OMinit

Initialize Operating Model
LW2OM

Estimate length-weight parameters from data
LBSPR_

Internal Estimation Function for LBSPR MP
MSEDescription

MSEDescription
LinInterp

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

Internal function to calculate MSY Reference Points
Obs-class

Class 'Obs'
DTe40

Effort searching MP aiming for a fixed stock depletion
Turing

Turing Test
StockDescription

StockDescription
TradePlot_old

Generic Trade-off Plot
Stock-class

Class 'Stock'
Atlantic_mackerel

Data class objects
SketchFun

Manually map the historical relative fishing effort trajectory.
StochasticSRA

Stochastic SRA construction of operating models
Generic_Obs

Obs class objects
ObsDescription

ObsDescription
IOTC_plot

Indian Ocean Tuna Commission trade-off plot
Fdem

Demographic FMSY method
Itarget_

Incremental Index Target MP Internal Function
PerformanceMetric

Performance Metrics Methods
Required

What management procedures need what data
Pplot

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

SBT simple MP
char.log-class

Class union for isRel slot
getq3

optimize for catchability (q)
cheatsheets

Opens the DLMtool Cheat-Sheets (requires internet connection)
boxplot.Data

Boxplot of TAC recommendations
barplot.MSE

Plot a barplot of MSE results
getmov2

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

Sensitivity analysis
SimulatedData

SimulatedData Data
label.class-class

Label class union for performance metric objects
PMobj-class

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

Internal function for Fdem MP
FleetDescription

FleetDescription
makeMeanMP

Create an MP that averages the results of multiple MPs
Hist-class

Class 'Hist'
ForceCor

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

Itarget1 with an MPA
LHdatabase

LHdatabase
ItargetE1

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

Performance Whisker Plot
Growth2OM

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

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

Generate a Data Report
Itargeteff_

Incremental Index Target MP Internal Function - Effort MP
LBSPRgen

Internal estimation function for LBSPR MP
optCPU

Determine optimal number of cpus
MRreal

Spatial closure and allocation management procedures
LtargetE1

Length Target TAE MP
MCD

Mean Catch Depletion
MSE-class

Class 'MSE'
OMdoc

Generate OM Documentation Report
Replace

Replace an existing Stock, Fleet, Obs, or Imp object
Rec-class

Class 'Rec'
OMexample

Copy example OM XL and OM Documentation
SPSRA_

Surplus Production Stock Reduction Analysis Internal Function
LH2OM

Predict missing life-history parameters
StochasticSRAcpp

Stochastic SRA construction of operating models
LstepCE1

Step-wise Constant Effort
runMSE

Run a Management Strategy Evaluation
plot.pars

Plot Operating Model Object
optMSY

Optimize yield for a single simulation
plotFun

Print out plotting functions
sample_steepness2

Sample steepness given mean and cv
VOIplot2

Value of Information Plot using PM functions
Ltarget1

Length Target TAC MP
NAor0

Is a value NA or zero.
SPmod

Surplus production based catch-limit modifier
Albacore

Stock class objects
SRAsim

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

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

Calculate Value Of Information
SampleCpars

Sample custom pars
SubCpars

Subset an OM cpars slot
applyMP

Apply Management Procedures to an object of class Data
tiny

tiny
Uses

Find the Management Procedures that use a particular data slot
XL2Data

Import a Data object from Excel file
condmet

Condition met?
avail

What objects of this class are available
cparscheck

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

Remove observation, implementation, and process error
alphaconv

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

Calculate selectivity curve
hist2

Wrapper for histogram function
dnormal

Double-normal selectivity curve
gettempvar

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

Internal function for YPR MPs
demographic2

Internal demographic function
matlenlim

Size limit management procedures
getr

Internal function to estimate r
NOAA_plot

National Oceanographic and Atmospheric Administration default plot 1
getBlow

Blow parallel optimization function
PMLimit

Create a table of Performance Limits and Performance Objectives
Rcontrol

Intrinsic rate of Increase MP
SPslope

Slope in surplus production MP
RealFease

MP feasibility diagnostic using real data
SRAcomp

Plot simulation test of Stochastic SRA method
validcpars

Valid custom parameters (cpars)
OneRep

Make stochastic variables certain for only one rep
wormplot

Biomass wormplot
SampleFleetPars

Sample Fleet Parameters
movfit_Rcpp

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

Plot M-at-Age and Size
getEffhist

Calculate historical fishing mortality
joinData

Join Data objects present in a list
SampleImpPars

Sample Implementation Error Parameters
YPR

Yield Per Recruit analysis to get FMSY proxy F01
VOIplot

Yet another Value of Information Plot
TAC

Calculate TAC recommendations for more than one MP
checkMSE

Utility functions for MSE objects
join_plots

Plot several plots with a shared legend
VOI2

Calculate Value Of Information 2
XL2OM

Load OM from Excel file
SubOM

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

Plot the Fleet object parameters
compplot

Generic comparison plot for simulation testing of Stochastic SRA method
ReqData

ReqData
SampleStockPars

Sample Stock parameters
TACfilter

TAC Filter
plotMPA

Plot the Historical Spatial Closures
SampleObsPars

Sample Observation Parameters
plotImp

Plot the Implementation object parameters
Thresh_tab

Current default thresholds for DFO satificing
prob.class-class

Prob class union for performance metric objects
show,PMobj-method

Show the output of a PM
setup

Setup parallel processing
popdynOneTScpp

Population dynamics model for one annual time-step
calcMean

Calculate Mean Probability
TradePlot

Generic Trade-Plot Function
Tplot_old

Trade-off plots for an MSE object
calcProb

Calculate Probability
curE

Fishing at current effort levels
cv

Calculate CV from vector of values
runCOSEWIC

COSEWIC MSE run using the correct MPs and projected time horizon
summary,Data-method

Summary of Data object
plotSelect

Plot the vulnerability and retention curves
replic8

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

A generic OFL plot for NOAA use
writeCSV

Internal function to write CSVs for objects
simCAL

Simulate Catch-at-Length Data
genSizeCompWrap

Wrapper for C++ function to generate length composition
getFref3

Calculate Reference Yield
getAFC

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

get object class
popdynCPP

Population dynamics model in CPP
makeTransparent

Make colors transparent
optQ

Optimize q for a single simulation
makePerf

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

Plot the Stock object parameters
optMSY_eq

Internal wrapper function to calculate MSY reference points
initialize-methods

~~ Methods for Function initialize ~~
iVB

Inverse von Bertalanffy
plotOM

Plot the operating model (OM) object parameters
plotObs

Plot the Observation object parameters
plot.Data

Plot Data object
plot.MSE

Plot MSE object
runMP

Run a Management Procedure
simCAA

Simulate Catch-at-Age Data
show,Rec-method

Show the output of a single MP recommendation
runInMP

Runs input control MPs on a Data object.
sampy

Sample vector
sdconv

Get parameters of lognormal distribution from mean and standard deviation in normal space
summary,MSE-method

Summary of MSE object
userguide

Open the DLMtool User Guide
testOM

testOM OM
trlnorm

Lognormal distribution for DLMtool
Blow_opt

Blow internal parallel optimization function
CSRAfunc

Optimization function for CSRA
CC

Age-based Catch Curve
CALsimp

Simplifies the CAL slot of data object