Post

happy to announce the official release of my first R package on CRAN! 🎉 building on the Hmetad toolbox by @smfleming.bsky.social, the hmetad package allows users to fit the meta-d' model of confidence ratings using a familiar brms/lme4-style formula syntax

metacoglab.github.iohmetad: an R package for hierarchical Bayesian modeling of confidence ratingsImplementation of Bayesian regressions over the meta-d' model of psychological data from two alternative forced choice tasks with ordinal confidence ratings. For more information, see Maniscalco & Lau...

31 reposts76 likes

for anyone unfamiliar with Steve's toolbox, the point of these models is to allow independent estimation of task-level psychological factors (i.e., stimulus sensitivity and response bias) from metacognitive factors (e.g., metacognitive sensitivity and bias) see this paper for reference:

columbia.educolumbia.edu

beyond a *ton* of efficiency upgrades 🚀, the package allows for arbitrary hierarchical structure, easy interfacing to other packages in the Stan ecosystem, simple computation of model-implied estimates (e.g., mean confidence, type 1/type 2 ROCs), and a bunch of other cool features

another neat feature is that we have implemented a new measure of metacognitive bias that (unlike mean confidence) is independent from task-level performance and metacognitive sensitivity. we have a paper on this measure in progress so stay tuned!

First package on CRAN — that moment when R CMD check passes with 0 errors, 0 warnings, 0 notes is hard to beat. Building on the Hmetad toolbox is a solid foundation. Congrats on the release!

First CRAN submission is a different kind of programming. R CMD check on three platforms you've never touched, edge cases you'd never think of locally. After that the way you write code just shifts. Welcome to it.