This major release extends the original approximate Bayesian framework for small-sample two-rater pre-post designs through seven interconnected statistical and computational modules. The original estimation and validation procedures remain available for backward compatibility.
Added three vignettes on selecting a workflow, reproducing the original workflow and using the extended continuous and ordinal models.
Added acknowledgements and funding information from the published article.
Clarified the limitations of legacy calibration and approximate evidence.
Fixed reconstruction of legacy time and rater labels containing
spaces or punctuation by using the exact names returned by
reshape(). The legacy estimands and numerical algorithm
remain unchanged.
Added fit_bivariate() for the analysis of paired
change scores under bivariate Gaussian models.
Four covariance structures are available:
Added maximum-likelihood estimation of covariance parameters, model-specific log-likelihoods and covariance estimates for the regression coefficients.
Sample covariance matrices and sufficient statistics are retained when maximum-likelihood covariance estimation is unavailable, permitting subsequent Bayesian inference under appropriate proper priors.
Added bivariate_prior() for explicit specification
of proper conjugate priors.
Added posterior_bivariate() for conjugate Bayesian
inference under the four covariance structures.
Both proper and model-specific improper reference priors are supported, subject to posterior propriety conditions.
Posterior uncertainty in the covariance parameters is propagated into inference on mean changes and rater discrepancies.
Analytical posterior distributions distinguish multivariate Student distributions from products of independent Student distributions in the appropriate parameter basis.
Posterior locations, scales, means and covariance matrices are reported with explicit checks on moment existence.
Added draw_bivariate() for direct independent
sampling from the joint posterior and posterior predictive
distributions, without Markov chain Monte Carlo.
Proper priors permit inference in some designs for which maximum-likelihood covariance estimation is unavailable.
Added contrast_bivariate() for inference on
reference-rater change, second-rater change, average change, weighted
change, systematic rater discrepancy and user-defined linear
contrasts.
Both posterior parameter contrasts and posterior predictive contrasts are supported.
Added pcontrast_bivariate() and
qcontrast_bivariate() for cumulative probabilities and
quantiles.
Credible and predictive intervals are obtained from analytical distributions or deterministic numerical convolution, as appropriate.
Added posterior probabilities of positive and negative effects, practical significance thresholds, and regions of practical equivalence (ROPEs).
Documented finite-precision limitations when evaluating probabilities over extremely narrow intervals.
Added log_marginal_bivariate() for analytical
evaluation of log marginal likelihoods under proper conjugate
priors.
Added compare_bivariate() for comparison of
covariance structures through Bayes factors and, when explicit prior
model probabilities are supplied, posterior model
probabilities.
Added bayesfactor_bivariate() for point, directional
and interval hypotheses concerning linear contrasts.
Point-hypothesis Bayes factors use the Savage-Dickey density ratio under its required conditional prior specification.
Directional and interval hypotheses are evaluated through posterior-to-prior odds ratios under an encompassing prior.
Added sensitivity_bivariate() for evaluating the
dependence of Bayesian evidence on alternative proper prior
specifications.
Marginal likelihoods and the associated Bayes factors are not calculated under improper reference priors.
Numerical evaluation of Student mixture densities and probabilities uses a logit transformation of the beta mixing variable, scale-dependent interval partitioning, logarithmic rescaling and adaptive quadrature.
Numerical integration includes an aggregate error check and reports unresolved calculations explicitly.
Added agreement_bivariate() for Bayesian analysis of
agreement between raters on individual pre-post changes.
Agreement is characterised through systematic mean discrepancy, discrepancy variance, population limits of agreement and posterior predictive intervals.
The analysis distinguishes practical equivalence of mean changes from agreement on individual changes.
User-defined agreement margins support estimation of predictive agreement probabilities and posterior probabilities of satisfying population-level agreement criteria.
Added draw_agreement() for direct sampling of
agreement parameters and conditional population coverage.
Added graphical methods for descriptive, conditional and predictive limits of agreement.
The agreement analysis concerns observed change scores and does not identify latent true change or measurement error components separately.
Added bivariate_scenario() for constructing
theoretical data-generating scenarios with explicitly specified mean
changes and covariance structures.
Added scenario_from_fit() for empirical calibration
of simulation scenarios from observed paired change scores.
Gaussian and multivariate Student data-generating distributions are supported.
Simulation scenarios permit additive second-rater perturbations, change-dependent perturbations and additional random variation.
Added scenario_truth() for calculating the target
contrasts and agreement quantities implied by the data-generating
mechanism.
Added simulate_bivariate() for generating paired
change scores or their corresponding long-format
representation.
Added validate_bivariate() for comparative
simulation studies involving the original approximate Bayesian
procedure, paired Student t inference and the new conjugate Bayesian
procedures.
Multiple analysis methods are evaluated on the same simulated datasets to support paired comparisons.
Added summarise_validation() for reporting
estimation accuracy, interval coverage, evidence, agreement, predictive
performance, failure rates and Monte Carlo standard errors, where
applicable.
Added compare_validation() for paired comparisons of
additive performance measures.
Added sbc_bivariate() for simulation-based
calibration of posterior contrast and discrepancy variance distributions
under proper priors.
Simulation-based calibration is distinguished from fixed-parameter assessments of inferential performance.
Estimation, evidence, marginal likelihood and agreement failures are recorded separately.
The log BIC-based Bayes factor for the original procedure is calculated directly within the new validation framework, avoiding overflow caused by exponentiation on the ordinary Bayes factor scale.
Added ordinal_prior() for specifying proper priors
for ordinal regression coefficients, subject-level covariance parameters
and free thresholds.
Added fit_ordinal() for hierarchical cumulative
probit modelling of ordinal responses observed at two time points by two
raters.
The model incorporates correlated subject-level effects, rater-specific location effects, time effects and time-by-rater interactions.
Common ordered thresholds and a fixed residual variance identify the latent probit scale.
Bayesian estimation uses a Gibbs sampler based on latent Gaussian data augmentation.
Added ordinal_diagnostics() for rank-normalised and
folded split R-hat, bulk and tail effective sample sizes, and Monte
Carlo standard errors.
Added contrast_ordinal() for posterior inference on
rater-specific, average, weighted and user-defined contrasts on the
latent probit scale.
Added predict_ordinal() for marginal category
probabilities and changes in cumulative exceedance
probabilities.
Added simulate_ordinal() for generating ordinal
repeated-measures datasets under specified model parameters.
Added validate_ordinal() for fixed-parameter
simulation studies, including estimation accuracy, interval coverage,
computational failures and diagnostic adequacy.
Latent probit contrasts are distinguished from contrasts on the observed ordinal response scale.
The ordinal model assumes common thresholds across time points and raters. It does not provide a general test of longitudinal measurement invariance.
Added explicit checks for covariance definiteness, numerical conditioning, posterior propriety and the existence of posterior moments.
Improved logarithmic calculations for Bayesian evidence, numerical convolution and tail probabilities.
The new stochastic procedures restore the previous supported
random-number generator state when an explicit seed is supplied,
including the original absence of .Random.seed.
Unsupported random-number generator configurations, including Box-Muller and user-supplied generators, are explicitly rejected by the new stochastic procedures.
Numerical limitations and computational failures are reported without silently substituting alternative statistical models.
The original public functions babebi(),
fit_model() and montecarlo_from_data() remain
available with their original interfaces.
All eight original R source files from version 0.1.1 remain present. The legacy documentation and label reconstruction have been updated; the original statistical algorithm is retained.
The original approximate Bayesian inference framework, BIC-based evidence and empirically calibrated simulation procedure remain unchanged.
The new bivariate and ordinal frameworks are accessed through separate public functions.
No additional mandatory package dependencies have been introduced.
Expanded the automated test suite to cover all seven new modules while retaining the original tests.
Added independent analytical and numerical benchmarks for likelihoods, conjugate posterior distributions, posterior moments, predictive distributions, contrasts, Bayesian evidence and agreement quantities.
Added regression tests for posterior sampling, covariance singularity, numerical overflow, random-number generator handling and extreme-scale Student mixture quadrature.
Added independent benchmarks for the ordinal Gibbs sampler and its convergence diagnostics.
Compared the ordinal convergence diagnostics with version 1.7.0 of the ‘posterior’ package as an external benchmark, without introducing it as a dependency.
The consolidated release requires a fresh build and check of the full test suite and all three vignettes. Historical test results do not establish the status of this release.
Corrected the orientation of the upper-triangular Cholesky factor
in fit_model() when generating multivariate normal
posterior draws.
Posterior draws now reproduce the covariance matrix specified by the implemented normal approximation. This correction affects posterior interval estimates, posterior tail probabilities and posterior density plots.
Added a regression test to verify the covariance structure of posterior draws.
Verified that the new regression test detects the error in version 0.1.0 and passes with the corrected implementation.
The statistical model, least-squares point estimates, BIC-based Bayes factors, design calibration and Monte Carlo simulation procedure remain unchanged.