R Under development (unstable) (2024-11-30 r87409 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 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(BFpack) Loading required package: bain Registered S3 methods overwritten by 'BFpack': method from get_estimates.lm bain get_estimates.t_test bain This is BFpack 1.4.0. Updates on default settings: - For standard (exploratory) tests, the default prior probability for a zero, negative, and positive effect are 0.5, 0.25, and 0.25, respectively. The previous default was 1/3 for each hypothesis. Changing these prior probabilities can be done using the argument 'prior.hyp.explo'. - For linear regression, ANOVA, t-tests, the fractional Bayes factor ('FBF') is the new default. To change this to the adjusted fractional Bayes factor (the previous default), users can set the argument: BF.type='AFBF'. > > test_check("BFpack") Call: BF.lm(x = lm_conf, hypothesis = hypothesis, prior.hyp.explo = prior.hyp.explo, prior.hyp.conf = prior.hyp.conf, prior.hyp = prior.hyp, complement = complement, log = logIN, cov.prob = cov.prob, BF.type = BF.type) Bayesian hypothesis test Type: exploratory Object: lm Parameter: regression coefficients Method: generalized adjusted fractional Bayes factors Posterior probabilities of the hypotheses Model parameters: Pr(=5) Pr(<5) Pr(>5) mu 0.513 0.471 0.016 Bayesian hypothesis test Type: confirmatory Object: lm Parameter: regression coefficients Method: generalized adjusted fractional Bayes factors Posterior probabilities of the hypotheses Pr(hypothesis|data) H1 0.329 H2 0.650 H3 0.022 Evidence matrix (BFs): H1 H2 H3 H1 1.000 0.253 7.508 H2 3.954 1.000 29.691 H3 0.133 0.034 1.000 Specification table: comp_E comp_O fit_E fit_O BF_E BF_O BF PHP H1 0.195 1.000 0.205 1.00 1.053 1.000 1.053 0.329 H2 1.000 0.214 1.000 0.89 1.000 4.166 4.166 0.650 H3 1.000 0.786 1.000 0.11 1.000 0.140 0.140 0.022 Hypotheses: H1: mu=5 H2: mu<6&mu>4 H3: complement [ FAIL 0 | WARN 0 | SKIP 14 | PASS 114 ] ══ Skipped tests (14) ══════════════════════════════════════════════════════════ • On CRAN (14): 'test_BFcortest.R:77:3', 'test_BFergm.R:6:3', 'test_BFergm.R:42:3', 'test_BFmeta.R:13:3', 'test_BFmlm.R:43:3', 'test_anova_manova.R:27:3', 'test_anova_manova.R:40:3', 'test_anova_manova.R:79:3', 'test_anova_manova.R:95:3', 'test_application4_BF.mlm_regression.R:3:3', 'test_application6_BF.mlm_correlations.R:4:3', 'test_application7_BF.lmerMod.R:4:3', 'test_application7_BF.lmerMod.R:36:3', 'test_ttest.R:108:3' [ FAIL 0 | WARN 0 | SKIP 14 | PASS 114 ] > > proc.time() user system elapsed 35.90 1.93 37.82