Learn R Programming

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

MSEtool V3.0.0

This is a new major release of the MSEtool package. It is not backwards compatible with previous versions of MSEtool or DLMtool.

This README will be updated when the package is released on CRAN.

Copy Link

Version

Install

install.packages('MSEtool')

Monthly Downloads

693

Version

3.0.0

License

GPL-3

Maintainer

Adrian Hordyk

Last Published

January 9th, 2021

Functions in MSEtool (3.0.0)

BlankSelPlot

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

Identify management procedures (MPs) based on data availability
CheckDuplicate

Check for duplicated MPs names
CALsimp

Simplifies the CAL slot of data object
CSRAfunc

Optimization function for CSRA
Blow_opt

Blow internal parallel optimization function
CSRA

Catch at size reduction analysis
CalculateQ

Optimize for catchability (q)
CheckMPs

Check that specified MPs are valid and will run on MSEtool::SimulatedData
CalcMPDynamics

Calculate population dynamics from MP recommendation
Cos_thresh_tab

Current default thresholds for COSEWIC satisficing
CombineMMP

Create a blank MP recommendations object (class Rec) of the right dimensions
ChkYrs

Check the years to summarize performance
Atlantic_mackerel

Data class objects
Fease

MP feasibility diagnostic
FMSYref

Reference management procedures
DLMDataDir

Directory of the installed package on your computer
DFO_hist

Department of Fisheries and Oceans historical plot
DFO_report

Create a standard DFO MSE report
DFO_bar

Department of Fisheries and Oceans stock status bar plot
DFO_spider

DFO performance spider plot (top three MPs)
Cplot

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

Manually map parameters for the historical period of operating model
Data-class

Class 'Data'
DFO_tab

Create a standard DFO performance table
Data_xl

Read in Data object from Excel spreadsheet
DFO_tab_formatted

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

Initialize Data Input Files
ML2D

Depletion and F estimation from mean length of catches
L2A

Length to age conversion
Kplot

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

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

Is a value NA or zero.
DataSlots

DataSlots
OM-class

Class 'OM'
Dom

Determine dominate MPs
Overages

Imp class objects
OMDescription

OMDescription
OMinit

Initialize Operating Model
NIL

Item in list: get the list values from a list of lists
Data2csv

Converts a Data object into a .csv data file
DecE_Dom

Fleet class objects
Converge

Check Convergence
Fleet-class

Class 'Fleet'
DataDir

Directory of the installed package on your computer
PMLimit

Create a table of Performance Limits and Performance Objectives
RealFease

MP feasibility diagnostic using real data
Generic_Obs

Obs class objects
Hist-class

Class 'Hist'
HistMICE

Reconstruct historical dynamics
OneRep

Make stochastic variables certain for only one rep
DataDescription

DataDescription
DFO_plot

Department of Fisheries and Oceans trade-off plot
SampleCpars

Sample custom pars
LH2OM

Predict missing life-history parameters
StockDescription

StockDescription
SampleFleetPars

Sample Fleet Parameters
XL2Data

Import a Data object from Excel file
Sub

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

Calculate Reference Yield
VPA2OM

Reads bootstrap estimates from a VPA stock assessment into an operating model.
getq_multi_MICE

Optimize for catchability (q) and fishing dist for a MICE model
DFO_plot2

Department of Fisheries and Oceans default plot 2
char.log-class

Class union for isRel slot
LHdatabase

LHdatabase
DFO_quant

Department of Fisheries and Oceans biomass quantile plot
DFO_proj

Department of Fisheries and Oceans projection plot
Rec-class

Class 'Rec'
ImpDescription

ImpDescription
Input

Function to run a set of input control methods
MPtype

Management Procedure Type
SubCpars

Subset an OM cpars slot
MPurl

Get help topic URL
Imp-class

Class 'Imp'
NOAA_plot

National Oceanographic and Atmospheric Administration default plot 1
MSEextra

Load more data from MSEextra package
Albacore_TwoFleet

MOM class objects
MMSE-class

Class 'MMSE'
Pplot2

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

Reads data from iSCAM file structure into a Data object
getsel

Calculate selectivity curve
iSCAM2OM

Reads MLE estimates from iSCAM file structure into an operating model
movestockCPP

Apply the movement model to the stock for one time-step
Range

Standardize values
FleetDescription

FleetDescription
GenerateRandomWalk

Creates a time series per simulation that has a random normal walk with sigma
MOM-class

Class 'MOM'
Sense

Sensitivity analysis
SS2DataMOM

Reads data Stock Synthesis file structure into a nested Data object analogous with multiMSE
SS2Data

Reads data Stock Synthesis file structure into a Data object using package r4ss
movfit_Rcpp

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

Sample Stock parameters
optQ

Optimize q for a single simulation
SubOM

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

Internal function to calculate MSY Reference Points
VOI2

Calculate Value Of Information 2
testOM

OM class objects
ObsDescription

ObsDescription
PerformanceMetric

Performance Metrics Methods
Obs-class

Class 'Obs'
VOI

Calculate Value Of Information
Uses

Find the Management Procedures that use a particular data slot
avail

What objects of this class are available
VOIplot

Yet another Value of Information Plot
read.control.file

Reads iSCAM control file
optYield

Optimize yield for a single simulation
read.data.file

Reads iSCAM dat file
OMexample

Copy example OM XL and OM Documentation
OMdoc

Generate OM Documentation Report
expandHerm

Expand the Herm list in SexPars to a matrix of fractions at age
getEffhist

Calculate historical fishing mortality
SimulateMOM

Run a multi-fleet multi-stock Management Strategy Evaluation
multidebug

A basic comparison of runMSE output (MSE) and multiMSE (MMSE)
fetch.file.names

Reads iSCAM Data, Control and Projection files
boxplot.Data

Boxplot of TAC recommendations
getclass

get object class
initialize-methods

~~ Methods for Function initialize ~~
Pplot

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

ReqData
Required

What management procedures need what data
runCOSEWIC

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

Simulate Catch-at-Length Data
replic8

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

Simulate Catch-at-Age Data
plot.Data

Plot Data object
qestMICE

Internal function for optimizing catchability (q) for a MICE model
plot.MMSE

Standard plot for an object of class MMSE (multi MSE)
MPCalcsNAs

Fill any NAs arising from MPCalcs (hermaphroditism mode)
prob.class-class

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

Show the output of a PM
makeTransparent

Make colors transparent
joinData

Join Data objects present in a list
MSE-class

Class 'MSE'
SampleObsPars

Sample Observation Parameters
TAC

Calculate TAC recommendations for more than one MP
Stock-class

Class 'Stock'
SampleImpPars

Sample Implementation Error Parameters
Albacore

Stock class objects
makemov

Calculates movement matrices from user inputs for fraction in each area (fracs) and probability of staying in areas (prob)
applyMMP

Apply multi Management Procedures (class MMP) to a hierarchical list of Data class objects
TACfilter

TAC Filter
ResFromRel

Returns Results of a set of MICE relationships
applyMP

Apply Management Procedures to an object of class Data
dnormal

Double-normal selectivity curve
getfirstlev

Extract the first dimension of a hierarchical list of recommendation objects
cv

Calculate CV from vector of values
hist2

Wrapper for histogram function
getmov2

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

Derives the rate of exchange from one sex to another based on asymptotic fraction
show,Rec-method

Show the output of a single MP recommendation
wormplot

Biomass wormplot
writeCSV

Internal function to write CSVs for objects
runMP

Run a Management Procedure
runInMP

Runs input control MPs on a Data object.
SIL

Slot in list: get the slot values from a list of objects
PMobj-class

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

MSEDescription
optCPU

Determine optimal number of cpus
popdynOneTScpp

Aging and Mortality for one time-step
optMSY_eq

Internal wrapper function to calculate MSY reference points
popdynOneMICE

Population dynamics for a MICE model (single year)
Replace

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

Performance Whisker Plot
SketchFun

Manually map the historical relative fishing effort trajectory.
SimulatedData

SimulatedData Data
read.projection.file

Reads iSCAM projection file
TEG

Tom's expand grid
Thresh_tab

Current default thresholds for DFO satisficing
read.report.file

Reads iSCAM Rep file
SS2MOM

Import Stock Synthesis to MOM (2-sex multi-fleet) or OM (single-sex, single-fleet)
Report

Generate a Data Report
XL2Fleet

Import Fleet Object from Excel file
SSBrefplot

Plot Spawning stock biomass and reference points for both historical and projected period
tinyErr

Remove observation, implementation, and process error
summary,MSE-method

Summary of MSE object
XL2Stock

Import Stock Object from Excel file
TradePlot

Generic Trade-Plot Function
Turing

Turing Test
alphaconv

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

Load OM from Excel file
checkMSE

Utility functions for MSE objects
calcMean

Calculate Mean Probability
getBlow

Blow parallel optimization function
getDataList

Get part of an MP specific data-list
calcProb

Calculate Probability
cparscheck

Internal function for checking that the OM@cpars is formatted correctly
genSizeCompWrap

Wrapper for C++ function to generate length composition
iSCAMinds

Combines indices into a single index using linear modelling
iSCAMcomps

Combines all iSCAM age composition data across fleets
multiData

Combine data among fleets
getAFC

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

Combine data among stocks
label.class-class

Label class union for performance metric objects
join_plots

Plot several plots with a shared legend
ldim

Dimensions of a hierarchical list object
plotFun

Print out plotting functions
plotOFL

A generic OFL plot for NOAA use
plotquant

A fairly tidy time-series quantile plot
plotmulti

A basic SSB plot for debugging runMSE output
Simulate

Run a Management Strategy Evaluation
sample_steepness2

Sample steepness given mean and cv
sdconv

Get parameters of lognormal distribution from mean and standard deviation in normal space
load.iscam.files

Reads iSCAM files into a hierarchical R list object
plot.pars

Plot Operating Model Object
popdynMICE

Population dynamics for a MICE model (multiyear)
plot.MSE

Plot MSE object
popdynCPP

Population dynamics model in CPP
setup

Setup parallel processing
trlnorm

Lognormal distribution for DLMtool
validcpars

Valid custom parameters (cpars)
read.par.file

Reads iSCAM parameter file
summary,Data-method

Summary of Data object
read.mcmc

Reads iSCAM mcmc output files
simmov

Calculates movement matrices from user inputs