Supplement 1. Source code and data for implementing the MCMC algorithm for the mixture t model.
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 co...
Main Authors: | , , , |
---|---|
Format: | Dataset |
Language: | unknown |
Published: |
Wiley
2016
|
Subjects: | |
Online Access: | https://dx.doi.org/10.6084/m9.figshare.3563076.v1 https://wiley.figshare.com/articles/dataset/Supplement_1_Source_code_and_data_for_implementing_the_MCMC_algorithm_for_the_mixture_t_model_/3563076/1 |
Summary: | 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. |
---|