10.6084/m9.figshare.3520541.v1 Summer L. Martin Summer L. Martin Stephen M. Stohs Stephen M. Stohs Jeffrey E. Moore Jeffrey E. Moore Supplement 1. R code for estimating models of rare-event protected species bycatch using WinBUGS. Wiley 2016 leatherback sea turtle Bayesian prediction Markov chain Monte Carlo protected species California drift gillnet fishery rare events humpback whale marine megafauna fisheries bycatch endangered species model Environmental Science Ecology 2016-08-04 21:19:23 Dataset https://wiley.figshare.com/articles/dataset/Supplement_1_R_code_for_estimating_models_of_rare-event_protected_species_bycatch_using_WinBUGS_/3520541 <h2>File List</h2><div> <p><a href="Supplement1_WinBUGS_code.R">Supplement1_WinBUGS_code.R</a> (MD5: 4d951eb09b779baaf882cef3df3d0993)</p> </div><h2>Description</h2><div> <p>Supplement1_WinBUGS_code.R – This R code specifies several different models of the bycatch rate for leatherback turtles and humpback whales in the California drift gillnet fishery. The code uses packages R2WinBUGS and Coda within R to communicate with the WinBUGS program and generate posterior distributions for the model parameters. The code includes the raw data on observed fishing sets and bycatch events (takes) of these species for 1990-2009 from the fisheries observer program administered by NOAA Fisheries. Therefore, other users can run the section of code for each model and species and reproduce our model estimation results.</p></div>