Richard A. Erickson, Christopher M. Merkes, and Erica L. Mize
This code supports the manuscript "Refinement of eDNA as an early monitoring tool at the landscape-level: Study design considerations". The code fit a three-level occupancy model with two detection assays in the program Stan through R. We programmed this code for a specific project with the USFWS and it will likely not generalize to other situations. The primary purpose of releasing this code is transparency and scientific reproducible. However, this code could be adapted by people who understand Stan and want to create their own three-level occupancy model.
This repository contains the following files and folder:
README.md
: This fileLICENSE
: The standard USGS software licensemodel_with_coef.R
: The R Script that formats data and runs the Stan modelcoefModel
: A folder with scriptpositiveSampleCoef.stan
: The Stan model that is called by the R script.simSampleSize.R
: R script that takes the output from the model and calculates the number of samples required for one positive detection.
Sensitivity_analysis
: A folder with the sensitivity analysis in a R Markdown file and outputs.
The data used in this project belong to the USFWS and the point of contact is Erica Mize: [email protected]
Primary code developer: Richard A. Erickson ([email protected])
This software is in the public domain because it contains materials that originally came from the U.S. Geological Survey, an agency of the United States Department of Interior. For more information, see the official USGS copyright policy.
This software is preliminary or provisional and is subject to revision. It is being provided to meet the need for timely best science. The software has not received final approval by the U.S. Geological Survey (USGS). No warranty, expressed or implied, is made by the USGS or the U.S. Government as to the functionality of the software and related material nor shall the fact of release constitute any such warranty. The software is provided on the condition that neither the USGS nor the U.S. Government shall be held liable for any damages resulting from the authorized or unauthorized use of the software.
This software is provided "AS IS".