Brian M. Brost, Mevin B. Hooten, Ephraim M. Hanks, and Robert J. Small. 2015. Animal movement constraints improve resource selection inference in the presence of telemetry error. Ecology 96:25902597. http://dx.doi.org/10.1890/15-0472.1


Supplement

Source code and data for implementing the MCMC algorithm for the mixture t model.
Ecological Archives E096-228-S1.

Copyright


Authors
File list (downloads)
Description


Author(s)

Brian M. Brost
Department of Fish, Wildlife, and Conservation Biology
Colorado State University
1484 Campus Delivery
Fort Collins, CO 80523-1484
E-mail: bmbrost@gmail.com

Mevin B. Hooten
U.S. Geological Survey
Colorado Cooperative Fish and Wildlife Research Unit
Department of Fish, Wildlife, and Conservation Biology
Colorado State University
1484 Campus Delivery
Fort Collins, CO 80523-1484

Ephraim M. Hanks
Department of Statistics
The Pennsylvania State University
310 Thomas Building
State College, PA 16801

Robert J. Small
Alaska Department of Fish and Game
PO Box 115526
Juneau, AK 99811-5526


File list

script.R (MD5: 57da87fd1e041a03add66cc2af0c8933)

constraints.MCMC.R (MD5: c52c9d7c30dcb95fae66d473cc4b25e1)

update.mu.cpp (MD5: 8a3185afcf71659dbcfbd21be73a14f2)

workspace.Rdata (MD5: 7bd75c148d65bf52ef058b182672fe2b)

seal.csv (MD5: 4e8a85f13486610fbab515c2fa04bef9)

Description

script.R contains R code for loading the data (workspace.Rdata), necessary R packages, subroutines (update.mu.cpp), and MCMC algorithm for model fitting (constraints.MCMC.R); simulating data; fitting the model to simulated data and examining the associated results; and fitting the model to the harbor seal telemetry data used in the case study and examining the associated results.

constraints.MCMC.R contains code to implement the MCMC algorithm for model fitting as outlined in Appendix B.

update.mu.cpp contains optional C++ code for updating  in the MCMC algorithm. Use argument Cpp=TRUE to the constraints.MCMC function to implement this C++ routine.

workspace.Rdata contains raster data representing the support of , bathymetry, and distance to haul-out site; a design matrix of spatially-reference habitat covariates for the resource selection function; and a spatial object containing the Argos telemetry locations of the harbor seal used in our case study.

seal.csv contains the x- and y-coordinates of the telemetry locations for the harbor seal used in our case study (in Albers equal area projection), as well as the associated dates, times, and Argos location classes.