Bayesian estimation, agreement and simulation-based evaluation for complete two-time, two-rater designs. The original workflow remains available for reproduction; use the extended Gaussian or ordinal workflow when its assumptions suit the study.
library(babebi)
vignette("choosing-a-workflow", package = "babebi")
vignette("basic-workflow", package = "babebi")
vignette("advanced-workflow", package = "babebi")The original model assumes independent change scores with common residual variance. It uses a plug-in normal approximation and BIC-based evidence. Its historical simulation does not reproduce the observed variance or within-subject correlation. The extended models are not assumption-free, and small sample size alone does not establish their validity.
Historical numerical safeguards and degenerate cases. Use finite real-valued outcomes and finite change scores; the basic input checks reject missing values but do not explicitly reject all infinite values. At least two participants are required for residual variance estimation.
The basic fit adds 1e-10 to each diagonal element of the estimated coefficient covariance matrix before Cholesky decomposition. With zero pooled within-rater residual variance (for example, constant change within each rater), this produces artificial posterior dispersion. With very small variances, the fixed addition may materially affect the reported uncertainty. It is a numerical safeguard, not a prior or an estimate of sampling uncertainty.
For the BIC-based Bayes factor, each residual sum of squares is bounded below by .Machine$double.eps (approximately 2.22e-16 in double precision). When this bound is active, the result is a regularised numerical approximation to BIC. At zero residual variance, the ordinary Gaussian maximum likelihood calculation is degenerate. These fixed safeguards are scale-dependent and are also used in the historical Monte Carlo engine.
Do not interpret basic intervals, posterior probabilities or Bayes factors from degenerate or numerically dominated fits as reliable inferential evidence. Inspect change scores and residual variability, check the measurement scale, and consider the advanced framework with a scientifically justified proper prior where appropriate. The safeguards remain unchanged for backward compatibility.
The authors thank Professor Massimiliano Pastore (University of Padova, Italy; PSICOSTAT) for his methodological guidance on simulation-based approaches during the Advanced Summer School on Bayesian statistical methods organised by the Italian Association of Psychology (Bertinoro, Italy, 2025).
The authors also thank Professors Gianmarco Altoè (University of Padova, Italy; PSICOSTAT) and Alessio Toraldo (University of Pavia, Italy) for their valuable suggestions on extending the methodological framework of the package, offered during the XXXII Conference of the Experimental Psychology Section of the Italian Association of Psychology (Venice, Italy, 3–5 September 2026).
Irene Gianeselli was supported by project PROBEN_0000004, The Four Challenges for the Promotion of Psychophysical Well-Being: an Intervention Model to Counter Smartphone Addiction (4Ch4WB, Four Challenges for Well-Being) (CUP I53C24001340001), funded by the Italian Ministry of University and Research under Ministerial Decree No. 1159 of 23 July 2023 (PROBEN Call).
Source: Gianeselli, I., Bosco, A., & Basso, D. (2026). babebi: An R package for Bayesian estimation and validation in small-N two-rater pre–post designs. Applied Psychological Measurement. https://doi.org/10.1177/01466216261465754