Bmm 1.4.1: signal detection and MPT models on CRAN

bmm (Bayesian Measurement Modeling) fits hierarchical measurement models of cognition through brms and Stan. Version 1.4.1 adds signal detection theory models for yes/no, m-AFC, ranking, confidence-rating (with dual-process and meta-d’ versions) and Remember/Know data, and multinomial processing tree models that import EQN files and MPTinR/TreeBUGS restrictions. Several of the SDT models use custom brms families, and the Gaussian ranking model computes its rank probabilities by numerical quadrature in Stan.

Every model takes predictors and random effects on all parameters through the brms formula syntax. New tools across models: native_parameters() for draws on the native scale, prior_info() for a report of the priors used, and bmm_setup() to check the CmdStan toolchain.

CRAN: CRAN: Package bmm
Get started: Get started with bmm • bmm
GitHub: GitHub - popov-lab/bmm: An R package for easy and flexible Bayesian Measurement Modeling · GitHub

Very cool, thanks for sharing!

It looks like this fits Stan models using CmdStanR through brms, right? Can you check that the package is compatible with the upcoming CmdStanR v1.0 release? In that linked post there’s a section on brms compatibility. Currently brms on GitHub should be compatible but the CRAN version of brms hasn’t been updated quite yet, although I think it will be soon.

Thanks for the heads-up! You’re right, bmm doesn’t compile anything itself. Everything goes through brms::brm().

I ran our test suite against the v1.0 branch, with both CRAN brms 2.23.0 and the current GitHub brms. Everything passes except one test that still calls cmdstan_model(compile = FALSE) for a syntax check. I’ll switch that to check_syntax_stan_file(). Ordinary fits, update(), threading and pathfinder all work with either brms version.

The one thing users can run into is with CRAN brms. Calling update() on a fit saved under CmdStanR 0.9 fails when its executable is still on disk, for example when cmdstanr_write_stan_file_dir is set: argument "show_progress_bar" is missing, with no default. GitHub brms recompiles in that case and the update goes through. Until the new brms reaches CRAN, we’ll point users on CmdStanR 1.0 to the GitHub version of brms.