From 423b119a72f42188f8e560fbe0dd2eeef03e972d Mon Sep 17 00:00:00 2001 From: FBartos Date: Thu, 16 Jan 2025 10:43:03 +0100 Subject: [PATCH] update tests --- .../ggplot-marginal-ss-mu-x-cont1.svg | 6 +- .../ggplot-marginal-ss-mu-x-fac2t-3.svg | 4 +- .../ggplot-marginal-ss-mu-x-fac2t-4.svg | 4 +- .../ggplot-marginal-ss-mu-x-fac3md.svg | 6 +- .../marginal-inference-ss-cont-p.svg | 342 +++--- .../marginal-inference-ss-fac-md-p.svg | 180 +-- .../marginal-ss-cond-fac.svg | 218 ++-- .../marginal-ss-form-con-p-exp.svg | 318 ++--- .../marginal-ss-form-con-p.svg | 440 +++---- .../marginal-ss-form-fac-md-p.svg | 174 +-- .../marginal-ss-form-fac-mdi-p.svg | 1056 ++++++++--------- .../marginal-ss-form-fac-t-p.svg | 138 +-- .../marginal-ss-form-int-p.svg | 70 +- .../marginal-ss-simple-fac-p.svg | 54 +- .../plot-marginal-ss-int.svg | 2 +- .../plot-marginal-ss-mu-x-cont1.svg | 6 +- .../plot-marginal-ss-mu-x-fac2t-3.svg | 36 +- .../plot-marginal-ss-mu-x-fac2t-4.svg | 4 +- .../plot-marginal-ss-mu-x-fac2t-5.svg | 4 +- .../plot-marginal-ss-mu-x-fac3md.svg | 6 +- tests/testthat/test-marginal-distributions.R | 2 +- 21 files changed, 1536 insertions(+), 1534 deletions(-) diff --git a/tests/testthat/_snaps/marginal-distributions/ggplot-marginal-ss-mu-x-cont1.svg b/tests/testthat/_snaps/marginal-distributions/ggplot-marginal-ss-mu-x-cont1.svg index 5be6bc38..a87d8cc3 100644 --- a/tests/testthat/_snaps/marginal-distributions/ggplot-marginal-ss-mu-x-cont1.svg +++ b/tests/testthat/_snaps/marginal-distributions/ggplot-marginal-ss-mu-x-cont1.svg @@ -51,9 +51,9 @@ - - - + + + diff --git a/tests/testthat/_snaps/marginal-distributions/ggplot-marginal-ss-mu-x-fac2t-3.svg b/tests/testthat/_snaps/marginal-distributions/ggplot-marginal-ss-mu-x-fac2t-3.svg index 95929257..9aaf58c0 100644 --- a/tests/testthat/_snaps/marginal-distributions/ggplot-marginal-ss-mu-x-fac2t-3.svg +++ b/tests/testthat/_snaps/marginal-distributions/ggplot-marginal-ss-mu-x-fac2t-3.svg @@ -55,8 +55,8 @@ - - + + diff --git a/tests/testthat/_snaps/marginal-distributions/ggplot-marginal-ss-mu-x-fac2t-4.svg b/tests/testthat/_snaps/marginal-distributions/ggplot-marginal-ss-mu-x-fac2t-4.svg index c1d451eb..a35fa4cf 100644 --- a/tests/testthat/_snaps/marginal-distributions/ggplot-marginal-ss-mu-x-fac2t-4.svg +++ b/tests/testthat/_snaps/marginal-distributions/ggplot-marginal-ss-mu-x-fac2t-4.svg @@ -51,8 +51,8 @@ - - + + diff --git a/tests/testthat/_snaps/marginal-distributions/ggplot-marginal-ss-mu-x-fac3md.svg b/tests/testthat/_snaps/marginal-distributions/ggplot-marginal-ss-mu-x-fac3md.svg index 3cb61248..f981e29e 100644 --- a/tests/testthat/_snaps/marginal-distributions/ggplot-marginal-ss-mu-x-fac3md.svg +++ b/tests/testthat/_snaps/marginal-distributions/ggplot-marginal-ss-mu-x-fac3md.svg @@ -49,9 +49,9 @@ - - - + + + diff --git a/tests/testthat/_snaps/marginal-distributions/marginal-inference-ss-cont-p.svg b/tests/testthat/_snaps/marginal-distributions/marginal-inference-ss-cont-p.svg index acd2488e..ade6ff85 100644 --- a/tests/testthat/_snaps/marginal-distributions/marginal-inference-ss-cont-p.svg +++ b/tests/testthat/_snaps/marginal-distributions/marginal-inference-ss-cont-p.svg @@ -61,85 +61,85 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - + - + - - - + + + - - + + @@ -207,38 +207,38 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -263,7 +263,7 @@ - + @@ -307,86 +307,86 @@ 0.4 - - + + - - - - + + + + - - - + + + - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - + - - - - - - + + + + + + - - - - - + + + + + diff --git a/tests/testthat/_snaps/marginal-distributions/marginal-inference-ss-fac-md-p.svg b/tests/testthat/_snaps/marginal-distributions/marginal-inference-ss-fac-md-p.svg index 7affa9eb..f928ba81 100644 --- a/tests/testthat/_snaps/marginal-distributions/marginal-inference-ss-fac-md-p.svg +++ b/tests/testthat/_snaps/marginal-distributions/marginal-inference-ss-fac-md-p.svg @@ -83,39 +83,39 @@ - - - + + + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - - + + + - + - - + + @@ -139,7 +139,7 @@ - + @@ -207,39 +207,39 @@ - + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + - + @@ -263,7 +263,7 @@ - + @@ -331,39 +331,39 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + @@ -387,6 +387,6 @@ - + diff --git a/tests/testthat/_snaps/marginal-distributions/marginal-ss-cond-fac.svg b/tests/testthat/_snaps/marginal-distributions/marginal-ss-cond-fac.svg index 9d96e3b5..6068a767 100644 --- a/tests/testthat/_snaps/marginal-distributions/marginal-ss-cond-fac.svg +++ b/tests/testthat/_snaps/marginal-distributions/marginal-ss-cond-fac.svg @@ -215,45 +215,49 @@ Density - - + + - - - --4 + + + +-4 -2 -0 -2 -4 - +0 +2 +4 + - - - + + + 0.0 -0.1 -0.2 -0.3 +0.1 +0.2 +0.3 - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + @@ -273,47 +277,48 @@ Density - - - - - - --4 --2 -0 -2 -4 - + + + + + + +-4 +-2 +0 +2 +4 + - - - + + + 0.0 -0.1 -0.2 -0.3 +0.1 +0.2 +0.3 - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + @@ -333,44 +338,47 @@ Density - - - - - - --4 --2 -0 -2 -4 - + + + + + + +-4 +-2 +0 +2 +4 + - - - + + + 0.0 -0.1 -0.2 -0.3 +0.1 +0.2 +0.3 - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + diff --git a/tests/testthat/_snaps/marginal-distributions/marginal-ss-form-con-p-exp.svg b/tests/testthat/_snaps/marginal-distributions/marginal-ss-form-con-p-exp.svg index 18e75f5b..d494ef4b 100644 --- a/tests/testthat/_snaps/marginal-distributions/marginal-ss-form-con-p-exp.svg +++ b/tests/testthat/_snaps/marginal-distributions/marginal-ss-form-con-p-exp.svg @@ -42,21 +42,21 @@ 0 5 10 - + - - - - - - + + + + + + 0.0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 +0.1 +0.2 +0.3 +0.4 +0.5 +0.6 @@ -104,47 +104,47 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -176,21 +176,21 @@ 0 5 10 - + - - - - - - + + + + + + 0.0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 +0.1 +0.2 +0.3 +0.4 +0.5 +0.6 @@ -233,47 +233,47 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -305,21 +305,21 @@ 0 5 10 - + - - - - - - + + + + + + 0.0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 +0.1 +0.2 +0.3 +0.4 +0.5 +0.6 @@ -362,46 +362,46 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/testthat/_snaps/marginal-distributions/marginal-ss-form-con-p.svg b/tests/testthat/_snaps/marginal-distributions/marginal-ss-form-con-p.svg index 4d83c82b..389ffce8 100644 --- a/tests/testthat/_snaps/marginal-distributions/marginal-ss-form-con-p.svg +++ b/tests/testthat/_snaps/marginal-distributions/marginal-ss-form-con-p.svg @@ -42,23 +42,23 @@ 0 5 10 - + - - - - - - - + + + + + + + 0.00 -0.05 -0.10 -0.15 -0.20 -0.25 -0.30 -0.35 +0.05 +0.10 +0.15 +0.20 +0.25 +0.30 +0.35 @@ -68,84 +68,84 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + - + @@ -177,17 +177,17 @@ 0 5 10 - + - - - - + + + + 0.0 -0.1 -0.2 -0.3 -0.4 +0.1 +0.2 +0.3 +0.4 @@ -214,38 +214,38 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -301,104 +301,104 @@ 0 5 10 - + - - - - - - - + + + + + + + 0.00 -0.05 -0.10 -0.15 -0.20 -0.25 -0.30 -0.35 +0.05 +0.10 +0.15 +0.20 +0.25 +0.30 +0.35 - - + + - - - - + + + + - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + diff --git a/tests/testthat/_snaps/marginal-distributions/marginal-ss-form-fac-md-p.svg b/tests/testthat/_snaps/marginal-distributions/marginal-ss-form-fac-md-p.svg index 6b7fea1d..8e7a4800 100644 --- a/tests/testthat/_snaps/marginal-distributions/marginal-ss-form-fac-md-p.svg +++ b/tests/testthat/_snaps/marginal-distributions/marginal-ss-form-fac-md-p.svg @@ -83,39 +83,39 @@ - - - + + + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - - + + + - + - - + + @@ -207,39 +207,39 @@ - + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + - + @@ -331,39 +331,39 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + diff --git a/tests/testthat/_snaps/marginal-distributions/marginal-ss-form-fac-mdi-p.svg b/tests/testthat/_snaps/marginal-distributions/marginal-ss-form-fac-mdi-p.svg index 78836293..47e7c764 100644 --- a/tests/testthat/_snaps/marginal-distributions/marginal-ss-form-fac-mdi-p.svg +++ b/tests/testthat/_snaps/marginal-distributions/marginal-ss-form-fac-mdi-p.svg @@ -62,84 +62,84 @@ - - - - + + + + - - - - - - + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + - - - - + + + + - + - + - - + + - + @@ -185,86 +185,86 @@ 0.4 - - + + - - - - - - - + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - - - - + + + + + + + - - - + + + - - - - + + + + @@ -310,84 +310,84 @@ 0.4 - + - - - - + + + + - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -459,40 +459,40 @@ - + - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - + - + @@ -584,37 +584,37 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -709,39 +709,39 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -810,85 +810,85 @@ 0.4 - + - + - - - + + + - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + @@ -935,85 +935,85 @@ 0.4 - + - - + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - + + + + + + - + @@ -1060,84 +1060,84 @@ 0.4 - - - + + + - + - - - - - - - - - - + + + + + + + + + + - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + diff --git a/tests/testthat/_snaps/marginal-distributions/marginal-ss-form-fac-t-p.svg b/tests/testthat/_snaps/marginal-distributions/marginal-ss-form-fac-t-p.svg index 4597e284..9d8188f4 100644 --- a/tests/testthat/_snaps/marginal-distributions/marginal-ss-form-fac-t-p.svg +++ b/tests/testthat/_snaps/marginal-distributions/marginal-ss-form-fac-t-p.svg @@ -83,39 +83,39 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -203,44 +203,44 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + - - - - + + + + diff --git a/tests/testthat/_snaps/marginal-distributions/marginal-ss-form-int-p.svg b/tests/testthat/_snaps/marginal-distributions/marginal-ss-form-int-p.svg index 4931cc82..e0790130 100644 --- a/tests/testthat/_snaps/marginal-distributions/marginal-ss-form-int-p.svg +++ b/tests/testthat/_snaps/marginal-distributions/marginal-ss-form-int-p.svg @@ -21,28 +21,26 @@ marginal prior intercept attr(marg_post_int[["intercept"]], "prior_samples") Density - + - - - - + + + + -4 --2 -0 -2 -4 - +-2 +0 +2 +4 + - - - - + + + 0.0 -0.1 -0.2 -0.3 -0.4 +0.1 +0.2 +0.3 @@ -50,24 +48,22 @@ - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + diff --git a/tests/testthat/_snaps/marginal-distributions/marginal-ss-simple-fac-p.svg b/tests/testthat/_snaps/marginal-distributions/marginal-ss-simple-fac-p.svg index 8e0f281a..ae612df1 100644 --- a/tests/testthat/_snaps/marginal-distributions/marginal-ss-simple-fac-p.svg +++ b/tests/testthat/_snaps/marginal-distributions/marginal-ss-simple-fac-p.svg @@ -98,37 +98,37 @@ 1 2 3 - + - - - - - - + + + + + + 0.0 -0.2 -0.4 -0.6 -0.8 -1.0 -1.2 +0.2 +0.4 +0.6 +0.8 +1.0 +1.2 - - - - - - + + + + + + - - - - - - - - + + + + + + + + diff --git a/tests/testthat/_snaps/marginal-distributions/plot-marginal-ss-int.svg b/tests/testthat/_snaps/marginal-distributions/plot-marginal-ss-int.svg index df77f9f4..e45e9d32 100644 --- a/tests/testthat/_snaps/marginal-distributions/plot-marginal-ss-int.svg +++ b/tests/testthat/_snaps/marginal-distributions/plot-marginal-ss-int.svg @@ -49,7 +49,7 @@ - + diff --git a/tests/testthat/_snaps/marginal-distributions/plot-marginal-ss-mu-x-cont1.svg b/tests/testthat/_snaps/marginal-distributions/plot-marginal-ss-mu-x-cont1.svg index f2f2ff64..ad3f420a 100644 --- a/tests/testthat/_snaps/marginal-distributions/plot-marginal-ss-mu-x-cont1.svg +++ b/tests/testthat/_snaps/marginal-distributions/plot-marginal-ss-mu-x-cont1.svg @@ -52,9 +52,9 @@ - - - + + + diff --git a/tests/testthat/_snaps/marginal-distributions/plot-marginal-ss-mu-x-fac2t-3.svg b/tests/testthat/_snaps/marginal-distributions/plot-marginal-ss-mu-x-fac2t-3.svg index 4fa240ac..07858b5a 100644 --- a/tests/testthat/_snaps/marginal-distributions/plot-marginal-ss-mu-x-fac2t-3.svg +++ b/tests/testthat/_snaps/marginal-distributions/plot-marginal-ss-mu-x-fac2t-3.svg @@ -18,21 +18,19 @@ - - - - - - - - --6 --4 --2 -0 -2 -4 -6 + + + + + + + +-4 +-2 +0 +2 +4 +6 @@ -54,14 +52,14 @@ - - + + A B - - + + A diff --git a/tests/testthat/_snaps/marginal-distributions/plot-marginal-ss-mu-x-fac2t-4.svg b/tests/testthat/_snaps/marginal-distributions/plot-marginal-ss-mu-x-fac2t-4.svg index 701dc1da..217731b7 100644 --- a/tests/testthat/_snaps/marginal-distributions/plot-marginal-ss-mu-x-fac2t-4.svg +++ b/tests/testthat/_snaps/marginal-distributions/plot-marginal-ss-mu-x-fac2t-4.svg @@ -52,8 +52,8 @@ - - + + A diff --git a/tests/testthat/_snaps/marginal-distributions/plot-marginal-ss-mu-x-fac2t-5.svg b/tests/testthat/_snaps/marginal-distributions/plot-marginal-ss-mu-x-fac2t-5.svg index 56cb5935..8c220c7e 100644 --- a/tests/testthat/_snaps/marginal-distributions/plot-marginal-ss-mu-x-fac2t-5.svg +++ b/tests/testthat/_snaps/marginal-distributions/plot-marginal-ss-mu-x-fac2t-5.svg @@ -52,8 +52,8 @@ - - + + A diff --git a/tests/testthat/_snaps/marginal-distributions/plot-marginal-ss-mu-x-fac3md.svg b/tests/testthat/_snaps/marginal-distributions/plot-marginal-ss-mu-x-fac3md.svg index 5caddb2c..1b3f0fc0 100644 --- a/tests/testthat/_snaps/marginal-distributions/plot-marginal-ss-mu-x-fac3md.svg +++ b/tests/testthat/_snaps/marginal-distributions/plot-marginal-ss-mu-x-fac3md.svg @@ -52,9 +52,9 @@ - - - + + + diff --git a/tests/testthat/test-marginal-distributions.R b/tests/testthat/test-marginal-distributions.R index 0fb32e93..cac2232f 100644 --- a/tests/testthat/test-marginal-distributions.R +++ b/tests/testthat/test-marginal-distributions.R @@ -1295,7 +1295,7 @@ test_that("Marginal distributions with spike and slab and mixture priors work", "(mu) x_cont1:x_fac3md[-1SD, A] 0.590 0.592 0.407 0.729 Inf" , "(mu) x_cont1:x_fac3md[0SD, A] 0.774 0.776 0.623 0.884 Inf" , "(mu) x_cont1:x_fac3md[1SD, A] 0.958 0.959 0.802 1.084 Inf" , - "(mu) x_cont1:x_fac3md[-1SD, B] 0.342 0.341 0.182 0.483 164.855" , + "(mu) x_cont1:x_fac3md[-1SD, B] 0.342 0.341 0.182 0.483 158.472" , "(mu) x_cont1:x_fac3md[0SD, B] 0.521 0.520 0.392 0.631 Inf" , "(mu) x_cont1:x_fac3md[1SD, B] 0.700 0.699 0.549 0.827 Inf" , "(mu) x_cont1:x_fac3md[-1SD, C] 0.375 0.374 0.226 0.501 Inf" ,