R Under development (unstable) (2026-05-19 r90065 ucrt) -- "Unsuffered Consequences" Copyright (C) 2026 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(testthat) > library(bayprior) > > test_check("bayprior") v Expert agreement satisfactory (min Bhattacharyya coefficient = 0.857). v Aggregated 3 expert priors using linear pooling. ! Substantial expert disagreement detected (min Bhattacharyya coefficient = 0.269). Consider reviewing individual elicitations or using robust/sceptical priors. v Aggregated 2 expert priors using linear pooling. ! Substantial expert disagreement detected (min Bhattacharyya coefficient = 0.269). Consider reviewing individual elicitations or using robust/sceptical priors. v Aggregated 2 expert priors using linear pooling. ! Substantial expert disagreement detected (min Bhattacharyya coefficient = 0.269). Consider reviewing individual elicitations or using robust/sceptical priors. v Aggregated 2 expert priors using linear pooling. v Expert agreement satisfactory (min Bhattacharyya coefficient = 0.857). v Aggregated 2 expert priors using logarithmic pooling. v Expert agreement satisfactory (min Bhattacharyya coefficient = 0.992). v Aggregated 2 expert priors using linear pooling. v Expert agreement satisfactory (min Bhattacharyya coefficient = 0.992). v Aggregated 2 expert priors using logarithmic pooling. v Expert agreement satisfactory (min Bhattacharyya coefficient = 0.857). v Aggregated 3 expert priors using linear pooling. v Expert agreement satisfactory (min Bhattacharyya coefficient = 1). v Aggregated 2 expert priors using linear pooling. ! Substantial expert disagreement detected (min Bhattacharyya coefficient = 0). Consider reviewing individual elicitations or using robust/sceptical priors. v Aggregated 2 expert priors using linear pooling. ! Substantial expert disagreement detected (min Bhattacharyya coefficient = 0). Consider reviewing individual elicitations or using robust/sceptical priors. v Aggregated 2 expert priors using linear pooling. v Expert agreement satisfactory (min Bhattacharyya coefficient = 0.857). v Aggregated 2 expert priors using linear pooling. v Expert agreement satisfactory (min Bhattacharyya coefficient = 0.857). v Aggregated 2 expert priors using linear pooling. -- bayprior: Linear pooled consensus prior ------------------------------------- * Distribution : MIXTURE * Components : 2 * Weights : 0.5, 0.5 * Mean : 0.3 v Expert agreement satisfactory (min Bhattacharyya coefficient = 0.857). v Aggregated 2 expert priors using linear pooling. v Expert agreement satisfactory (min Bhattacharyya coefficient = 0.857). v Aggregated 3 expert priors using linear pooling. -- Prior-Data Conflict Diagnostics --------------------------------------------- -- Prior: Unknown quantity -- * Box's p-value : 1 * Surprise index : 0 * KL divergence : 0.1302 * Overlap coefficient : 0.9748 * Conflict severity : NONE ! No evidence of prior-data conflict (Box p = 1). The prior appears consistent with the observed data. -- Prior-Data Conflict Diagnostics --------------------------------------------- -- Prior: Unknown quantity -- * Box's p-value : 1 * Surprise index : 0 * KL divergence : 0.1091 * Overlap coefficient : 0.9669 * Conflict severity : NONE ! No evidence of prior-data conflict (Box p = 1). The prior appears consistent with the observed data. -- Prior-Data Conflict Diagnostics --------------------------------------------- -- Prior: Unknown quantity -- * Box's p-value : 0 * Surprise index : 10.704 * KL divergence : 178.0751 * Overlap coefficient : 0 * Conflict severity : SEVERE ! Severe prior-data conflict detected (Box p = 0, surprise = 10.7). Re-elicitation or use of a robust/sceptical prior is strongly recommended. -- Prior-Data Conflict Diagnostics --------------------------------------------- -- Prior: Unknown quantity -- * Box's p-value : 1 * Surprise index : 0 * KL divergence : 0.1302 * Overlap coefficient : 0.9748 * Conflict severity : NONE ! No evidence of prior-data conflict (Box p = 1). The prior appears consistent with the observed data. -- Prior-Data Conflict Diagnostics --------------------------------------------- -- Prior: Unknown quantity -- * Box's p-value : 1 * Surprise index : 0 * KL divergence : 0.1091 * Overlap coefficient : 0.9669 * Conflict severity : NONE ! No evidence of prior-data conflict (Box p = 1). The prior appears consistent with the observed data. -- Prior-Data Conflict Diagnostics --------------------------------------------- -- Prior: Unknown quantity -- * Box's p-value : 0 * Surprise index : 10.704 * KL divergence : 178.0751 * Overlap coefficient : 0 * Conflict severity : SEVERE ! Severe prior-data conflict detected (Box p = 0, surprise = 10.7). Re-elicitation or use of a robust/sceptical prior is strongly recommended. -- bayprior: Unknown quantity -------------------------------------------------- * Distribution : BETA * Parameters : alpha = 6, beta = 14 * Method : moments elicitation * Expert : Expert_1 * Mean (SD) : 0.3 (0.1) * 95% CrI : [0.1258, 0.512] -- bayprior: Unknown quantity -------------------------------------------------- * Distribution : BETA * Parameters : alpha = 6, beta = 14 * Method : moments elicitation * Expert : Expert_1 * Mean (SD) : 0.3 (0.1) * 95% CrI : [0.1258, 0.512] -- bayprior: Test -------------------------------------------------------------- * Distribution : BETA * Parameters : alpha = 6, beta = 14 * Method : moments elicitation * Expert : Expert_1 * Mean (SD) : 0.3 (0.1) * 95% CrI : [0.1258, 0.512] == bayprior Summary == Label : Unknown quantity Distribution: BETA Parameters : alpha = 6, beta = 14 Mean : 0.3 SD : 0.1 2.5% : 0.1258 50% : 0.2932 97.5% : 0.512 v Expert agreement satisfactory (min Bhattacharyya coefficient = 0.916). v Aggregated 3 expert priors using linear pooling. v Optimal power prior weight: delta = 0.9 (method = bayes_factor). v Expert agreement satisfactory (min Bhattacharyya coefficient = 0.71). v Aggregated 2 expert priors using linear pooling. v Expert agreement satisfactory (min Bhattacharyya coefficient = 0.857). v Aggregated 2 expert priors using linear pooling. v Optimal power prior weight: delta = 0.1 (method = bayes_factor). v Optimal power prior weight: delta = 0.1 (method = bayes_factor). v Optimal power prior weight: delta = 1 (method = compatibility). v Optimal power prior weight: delta = 0.2 (method = bayes_factor). v Optimal power prior weight: delta = 0.8 (method = compatibility). v Optimal power prior weight: delta = 0.2 (method = bayes_factor). v Optimal power prior weight: delta = 0.2 (method = bayes_factor). -- Power Prior Calibration ----------------------------------------------------- * Method : bayes_factor * Target BF : 3 * Optimal delta: 0.2 * Power prior mean: 0.3792 * Power prior SD : 0.1285 v Optimal power prior weight: delta = 0.2 (method = bayes_factor). $grid alpha beta posterior_mean 1 1 2 0.3488372 2 2 2 0.3636364 3 3 2 0.3777778 4 1 3 0.3409091 5 2 3 0.3555556 6 3 3 0.3695652 7 1 4 0.3333333 8 2 4 0.3478261 9 3 4 0.3617021 $param_grid $param_grid$alpha [1] 1 2 3 $param_grid$beta [1] 2 3 4 $target [1] "posterior_mean" $reference_row [1] 9 $influence_scores posterior_mean 0.04444444 $threshold [1] 0.3 $prior -- bayprior: Unknown quantity -------------------------------------------------- * Distribution : BETA * Parameters : alpha = 6, beta = 14 * Method : moments elicitation * Expert : Expert_1 * Mean (SD) : 0.3 (0.1) * 95% CrI : [0.1258, 0.512] attr(,"class") [1] "bayprior_sensitivity" [ FAIL 0 | WARN 0 | SKIP 21 | PASS 430 ] ══ Skipped tests (21) ══════════════════════════════════════════════════════════ • On CRAN (20): 'test-plots-snapshots.R:1:1', 'test-plots-snapshots.R:8:1', 'test-plots-snapshots.R:17:1', 'test-plots-snapshots.R:23:1', 'test-plots-snapshots.R:32:1', 'test-plots-snapshots.R:43:1', 'test-plots-snapshots.R:55:1', 'test-plots-snapshots.R:67:1', 'test-plots-snapshots.R:80:1', 'test-plots-snapshots.R:95:1', 'test-plots-snapshots.R:109:1', 'test-shiny-modules.R:13:3', 'test-shiny-modules.R:27:3', 'test-shiny-modules.R:54:3', 'test-shiny-modules.R:79:3', 'test-shiny-modules.R:113:3', 'test-shiny-modules.R:143:3', 'test-shiny-modules.R:172:3', 'test-shiny-modules.R:193:3', 'test-shiny-modules.R:217:3' • empty test (1): [ FAIL 0 | WARN 0 | SKIP 21 | PASS 430 ] > > proc.time() user system elapsed 11.68 0.68 12.31