遇见数据集

Supplement 1. R code to implement the Metropolis-Hastings algorithm.

收藏
NIAID Data Ecosystem2026-03-09 收录
官方服务:

资源简介:

File List carlson_etal_ecology_supplement_Rscript.txt Description This is a text file containing annotated R code to fit the Bayesian model for the survival function based on the pre-winter and post-winter inverse Gaussian length distributions. The code implements the Metropolis-Hastings algorithm to sample from the posterior distribution of the three parameters of the model. In particular, the output includes posterior samples for parameters “mu” and “phi” (the mean and shape parameter, respectively, of the pre-winter length distribution) and for "alpha" (the parameter of the survival function). These posterior samples can be used, as described in the paper, to plot point and interval estimates for the survival function and for the pre-winter and post-winter length densities.

创建时间:
2016-08-05
二维码
社区交流群
二维码
科研交流群
商业服务