Supplement 1. R code to implement the Metropolis-Hastings algorithm.
收藏WILEY2016-08-05 更新2026-04-17 收录
下载链接:
https://wiley.figshare.com/articles/dataset/Supplement_1_R_code_to_implement_the_Metropolis-Hastings_algorithm_/3544556/1
下载链接
链接失效反馈官方服务:
资源简介:
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



