This article introduces the bpcs R package (Bayesian Paired Comparison in Stan) and the statistical models implemented in the package. This package aims to facilitate the use of Bayesian models for paired comparison data in behavioral research. Bayesian analysis of paired comparison data allows parameter estimation even in conditions where the maximum likelihood does not exist, allows easy extension of paired comparison models, provide straightforward interpretation of the results with credible intervals, have better control of type I error, have more robust evidence towards the null hypothesis, allows propagation of uncertainties, includes prior information, and perform well when handling models with many parameters and latent variables. The bpcs package provides a consistent interface for R users and several functions to evaluate the posterior distribution of all parameters, to estimate the posterior distribution of any contest between items, and to obtain the posterior distribution of the ranks. Three reanalyses of recent studies that used the frequentist Bradley-Terry model are presented. These reanalyses are conducted with the Bayesian models of the bpcs package, and all the code used to fit the models, generate the figures, and the tables are available in the online appendix.
翻译:本篇文章介绍了bpcs R 包件(斯坦的Bayesian Paired比较)和包件中执行的统计模型。包件旨在便利使用Bayesian模型进行行为研究中的配对比较数据。配对比较数据分析允许即使在不存在最大可能性的情况下也进行参数估计,便于扩展配对比较模型,以可信的间隔对结果进行直截了当的解释,对I型错误有更好的控制,对无效假设有更强有力的证据,允许不确定性的传播,包括先前的信息,在处理含有许多参数和潜在变量的模型时运行良好。包件为R用户提供了一个一致的界面,并提供了若干功能,用以评估所有参数的远端分布,估计项目之间任何竞争的后端分布,并获得等级的后端分布。提供了三种最近使用经常使用布拉德利德-Termy模型的研究的重新分析结果。这些重新分析与Bpc软件包的Bayesian模型进行,以及所有用于匹配模型的代码、生成数字和在线附录中的表格。