Giter VIP home page Giter VIP logo

datalimited2's Introduction

datalimited2: More stock assessment methods for data-limited fisheries

Installation

Before installing datalimited2, you will need to install JAGS (for BSM) and a C++ compiler (i.e., Xcode for Macs, RTools for Windows; for installing packages using the "devtools" package).

The "datalimited2" R package can then be installed from GitHub with:

# Run if you don't already have devtools installed
install.packages("devtools")

# Run once devtools is successfully installed
devtools::install_github("cfree14/datalimited2")
library(datalimited2)

The package implements the following catch-only stock assessment models:

  • cMSY from Froese et al. 2017; see ?cmsy2
  • Bayesian surplus production model (BSM) from Froese et al. 2017; see ?bsm
  • Boosted regression tree approach (zBRT) from Zhou et al. 2017a; see ?zbrt
  • Optimized catch-only model (OCOM) from Zhou et al. 2017b; see ?ocom
  • Refined ORCS approach (rORCS) from Free et al. 2017; see ?rorcs
  • Multispecies cMSY (MS-cMSY) from Free et al. in prep; see ?ms_cmsy

The results of all but the rORCS model can be visualized using the ?plot_dlm function.

The performance of catch-only methods (i.e., their ability to accurately estimate B/BMSY or accurately classify categorical status) can be compared using the ?performance function.

Many of these catch-only methods require estimates of resilience to set priors and resilience estimates can be retrieved from FishBase/SeaLifeBase busing the ?resilience function.

Citation

To cite the package, cite the authors of the original assessment method (shown below) and the following:

Free CM (2018) datalimited2: More stock assessment methods for data-limited fisheries. R package version 0.1.0. https://github.com/cfree14/datalimited2

References

Free CM, Rudd MB, Kleisner KM, Thorson JT, Longo C, Minto C, Jensen OP (in prep) Multispecies catch-only models for assessing data-limited fisheries.

Free CM, Jensen OP, Wiedenmann J, Deroba JJ (2017) The refined ORCS approach: a catch-based method for estimating stock status and catch limits for data-poor fish stocks. Fisheries Research 193: 60-70.

Froese R, Demirel N, Coro G, Kleisner KM, Winker H (2017) Estimating fisheries reference points from catch and resilience. Fish & Fisheries 18(3): 506-526.

Zhou S, Punt AE, Ye Y, Ellis N, Dichmont CM, Haddon M, Smith DC, Smith ADM (2017a) Estimating stock depletion level from patterns of catch history. Fish & Fisheries 18(4): 742-751.

Zhou S, Punt AE, Smith ADM, Ye Y, Haddon M, Dichmont CM, Smith DC (2017b) An optimised catch-only assessment method for data poor fisheries. ICES Journal of Marine Science: doi:10.1093/icesjms/fsx226.

datalimited2's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

datalimited2's Issues

example(ocom) ends with an error

Hi,

I tried the example for the ocom method and ended up with an error. The output is reproduced below:

example(ocom)

ocom> # Fit OCOM to catch time series and plot output
ocom> set.seed(1) # stochastic fitting

ocom> output <- ocom(year=TIGERFLAT$yr, catch=TIGERFLAT$catch, m=0.27)
Error in f$psi.history[[5]] : subscript out of bounds

cheers,
marco

non-ASCII character blocks build

#' error is calculated as (θest-θ)/|θ|, where θest and θ represent predicted

I kept running into the following error when trying to load this package

* installing *source* package 'datalimited2' ...
** R
Error : (converted from warning) unable to re-encode 'performance.R' line 60
ERROR: unable to collate and parse R files for package 'datalimited2'

When I remove the theta symbol the package loads correctly. Possibly something to tweak for compatibility with others?

Package installation issue [Not downloadable from github in R]

Hello,

I keep having issues in installing this package in R. The error shown is as follows.

> devtools::install_github("cfree14/datalimited2")
Downloading GitHub repo cfree14/datalimited2@HEAD
Error in utils::download.file(url, path, method = method, quiet = quiet,  : 
  download from 'https://api.github.com/repos/cfree14/datalimited2/tarball/HEAD' failed

I've tried to do this on two different internet connections but it doesn't seem like a connection issue.
Thank you for your help to address this issue.

Fix cMSY/BSM issues

  • Output B/BMSY time series
  • Output mgmt/biological quantities
  • Setup plotting functions
  • Make sure BSM is working

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.