Supplement 1. Source code and data for implementing the MCMC algorithm for the mixture t model.
收藏DataCite Commons2025-05-01 更新2024-07-25 收录
下载链接:
https://wiley.figshare.com/articles/dataset/Supplement_1_Source_code_and_data_for_implementing_the_MCMC_algorithm_for_the_mixture_t_model_/3563076/1
下载链接
链接失效反馈官方服务:
资源简介:
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 <i>x</i>- and <i>y</i>-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.
文件列表:
script.R(MD5哈希值:57da87fd1e041a03add66cc2af0c8933)、constraints.MCMC.R(MD5哈希值:c52c9d7c30dcb95fae66d473cc4b25e1)、update.mu.cpp(MD5哈希值:8a3185afcf71659dbcfbd21be73a14f2)、workspace.Rdata(MD5哈希值:7bd75c148d65bf52ef058b182672fe2b)、seal.csv(MD5哈希值:4e8a85f13486610fbab515c2fa04bef9)
各文件详细说明:
1. script.R:包含用于加载数据(workspace.Rdata)、所需R扩展包、子例程(update.mu.cpp)以及用于模型拟合的马尔可夫链蒙特卡洛(Markov Chain Monte Carlo, MCMC)算法(constraints.MCMC.R)的R代码;同时涵盖数据模拟、将模型拟合至模拟数据并分析对应结果,以及将模型拟合至案例研究中使用的港海豹遥测数据并分析对应结果的相关流程。
2. constraints.MCMC.R:包含实现附录B中所述模型拟合用MCMC算法的代码。
3. update.mu.cpp:包含用于在MCMC算法中更新[图像:详见附件文件]的可选C++代码。若需调用此C++程序,需在constraints.MCMC函数中传入参数`Cpp=TRUE`。
4. workspace.Rdata:包含用于表征[图像:详见附件文件]支撑域、水深数据以及至上岸栖息点距离的栅格数据;用于资源选择函数(resource selection function)的空间参考生境协变量设计矩阵;以及包含本案例研究所用港海豹Argos遥测位置的空间对象。
5. seal.csv:包含本案例研究所用港海豹遥测位置的*x*坐标与*y*坐标(采用Albers等面积投影),以及对应的日期、时间与Argos位置等级。
提供机构:
Wiley
创建时间:
2016-08-10



