Wiley
Browse
1/1
6 files

Supplement 1. Source code and data for implementing the MCMC algorithm for the mixture t model.

dataset
posted on 2016-08-10, 10:34 authored by Brian M. Brost, Mevin B. Hooten, Ephraim M. Hanks, Robert J. Small

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 -- IMAGE: Please see in attached file. -- 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 -- IMAGE: Please see in attached file. --, 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.

History