Bayesian Estimation and Validation for Small-N Designs with Rater Bias

Analyses complete two-time, two-rater repeated-measures designs. The original workflow uses a normal approximation to the posterior of a change-score regression with plug-in residual variance, a Bayesian information criterion (BIC) approximation to a Bayes factor, and a simplified Monte Carlo simulation. The extended workflow provides bivariate Gaussian change-score models with four covariance structures, exact conjugate posterior distributions under model-specific reference or proper priors, and posterior and predictive contrasts. Proper priors enable marginal likelihoods, Bayes factors and prior sensitivity analyses. Agreement analysis distinguishes mean discrepancies from individual predictive agreement. The package includes comparative simulation studies, empirical plug-in scenarios, Monte Carlo standard errors and simulation-based calibration. A hierarchical cumulative probit model supports ordinal outcomes using Gibbs sampling and convergence diagnostics. The original methods remain available for reproduction of Gianeselli, Bosco and Basso (2026) . See Morris, White and Crowther (2019) for simulation design and Albert and Chib (1993) for latent Gaussian augmentation.


babebi

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.

Numerical limitations of the basic workflow

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.

Acknowledgements

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).

Funding

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

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("babebi")

1.0.0 by Irene Gianeselli, 3 days ago


Browse source code at https://github.com/cran/babebi


Authors: Irene Gianeselli [aut, cre] (ORCID: , affiliation: Free University of Bozen-Bolzano) , Andrea Bosco [aut] , affiliation: University of Bari Aldo Moro) , Demis Basso [aut] , affiliation: Free University of Bozen-Bolzano)


Documentation:   PDF Manual  


GPL-3 license


Imports stats, graphics

Suggests testthat, knitr, rmarkdown


See at CRAN