Department of Psychology, University of Freiburg, Engelbergerstrasse, 41, 79106, Freiburg, Germany.
Behav Res Methods. 2020 Jun;52(3):1313-1338. doi: 10.3758/s13428-019-01318-x.
Response-time extended multinomial processing tree models (RT-MPT; Klauer and Kellen, Journal of Mathematical Psychology, 82, 111-130 2018) provide estimates of process-completion times for cognitive processes modeled by means of multinomial processing tree (MPT) models (Batchelder and Riefer, Psychonomic Bulletin & Review, 6, 57-86 1999). We present the R package rtmpt with which it is possible to fit RT-MPT models easily. The package is free and open source, it can be used with two established MPT syntaxes, and has a number of useful features, such as suppressing process-completion times for specific process outcomes, holding process probabilities constant, and changing some prior parameters. In the background of the R package, an altered version of the original C++ code is used for the MCMC sampling. We provide a guide to using rtmpt, validate the underlying hierarchical Bayesian algorithm of rtmpt using simulation-based calibration and show that previously reported results can be reproduced using rtmpt.
响应时间扩展多项处理树模型(RT-MPT;Klauer 和 Kellen,《数学心理学杂志》,82,111-130,2018)为通过多项处理树(MPT)模型建模的认知过程提供了过程完成时间的估计(Batchelder 和 Riefer,《心理通报与评论》,6,57-86,1999)。我们提出了 R 包 rtmpt,可以轻松拟合 RT-MPT 模型。该软件包是免费和开源的,可以与两种已建立的 MPT 语法一起使用,并且具有许多有用的功能,例如抑制特定过程结果的过程完成时间、保持过程概率不变,以及更改某些先验参数。在 R 包的背景下,为 MCMC 抽样使用了原始 C++代码的修改版本。我们提供了使用 rtmpt 的指南,使用基于模拟的校准验证了 rtmpt 的基础层次贝叶斯算法,并表明可以使用 rtmpt 重现先前报告的结果。