From c9ce1d3f76933d88e0f617921b9a376c53860b96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Teemu=20S=C3=A4ilynoja?= Date: Fri, 19 Jan 2024 15:13:06 +0200 Subject: [PATCH] New tests for ppc_pit_ecdf() and ppc_pit_ecdf_grouped(). --- .../ppc-pit-ecdf-default.svg | 60 +++--- .../ppc-distributions/ppc-pit-ecdf-diff.svg | 54 ++--- .../ppc-pit-ecdf-grouped-default.svg | 188 +++++++++--------- .../ppc-pit-ecdf-grouped-diff.svg | 172 ++++++++-------- 4 files changed, 242 insertions(+), 232 deletions(-) diff --git a/tests/testthat/_snaps/ppc-distributions/ppc-pit-ecdf-default.svg b/tests/testthat/_snaps/ppc-distributions/ppc-pit-ecdf-default.svg index a45b5f05..a8ccbc11 100644 --- a/tests/testthat/_snaps/ppc-distributions/ppc-pit-ecdf-default.svg +++ b/tests/testthat/_snaps/ppc-distributions/ppc-pit-ecdf-default.svg @@ -20,38 +20,40 @@ - - + + - - - - + + + + - -0.00 -0.25 -0.50 -0.75 -1.00 - - - - - - - - - - - -0.00 -0.25 -0.50 -0.75 -1.00 -ppc_pit_ecdf (default) + +0.00 +0.25 +0.50 +0.75 +1.00 + + + + + + + + + + + +0.00 +0.25 +0.50 +0.75 +1.00 +PIT +ECDF +ppc_pit_ecdf (default) diff --git a/tests/testthat/_snaps/ppc-distributions/ppc-pit-ecdf-diff.svg b/tests/testthat/_snaps/ppc-distributions/ppc-pit-ecdf-diff.svg index 1eaf2e0b..f5f91cd0 100644 --- a/tests/testthat/_snaps/ppc-distributions/ppc-pit-ecdf-diff.svg +++ b/tests/testthat/_snaps/ppc-distributions/ppc-pit-ecdf-diff.svg @@ -20,34 +20,38 @@ - - + + - - - - + + + + - --0.1 -0.0 -0.1 - - - - - - - - - -0.00 -0.25 -0.50 -0.75 -1.00 -ppc_pit_ecdf (diff) + +-0.1 +0.0 +0.1 +0.2 + + + + + + + + + + +0.00 +0.25 +0.50 +0.75 +1.00 +PIT +ECDF +ppc_pit_ecdf (diff) diff --git a/tests/testthat/_snaps/ppc-distributions/ppc-pit-ecdf-grouped-default.svg b/tests/testthat/_snaps/ppc-distributions/ppc-pit-ecdf-grouped-default.svg index 7e475360..b47aabd2 100644 --- a/tests/testthat/_snaps/ppc-distributions/ppc-pit-ecdf-grouped-default.svg +++ b/tests/testthat/_snaps/ppc-distributions/ppc-pit-ecdf-grouped-default.svg @@ -20,144 +20,146 @@ - - + + - - - - - - + + + + + + - - + + - - - - - - + + + + + + - - + + - - - - - - + + + + + + - - + + - - - - - - + + + + + + - - + + - -C + +C - - + + - -D + +D - - + + - -A + +A - - + + - -B + +B - - - - - - -0.00 -0.25 -0.50 -0.75 -1.00 - - - - - - -0.00 -0.25 -0.50 -0.75 -1.00 - -0.00 -0.25 -0.50 -0.75 -1.00 - - - - - - -0.00 -0.25 -0.50 -0.75 -1.00 - - - - - -ppc_pit_ecdf_grouped (default) + + + + + + +0.00 +0.25 +0.50 +0.75 +1.00 + + + + + + +0.00 +0.25 +0.50 +0.75 +1.00 + +0.00 +0.25 +0.50 +0.75 +1.00 + + + + + + +0.00 +0.25 +0.50 +0.75 +1.00 + + + + + +PIT +ECDF +ppc_pit_ecdf_grouped (default) diff --git a/tests/testthat/_snaps/ppc-distributions/ppc-pit-ecdf-grouped-diff.svg b/tests/testthat/_snaps/ppc-distributions/ppc-pit-ecdf-grouped-diff.svg index 4c775d05..b3329c23 100644 --- a/tests/testthat/_snaps/ppc-distributions/ppc-pit-ecdf-grouped-diff.svg +++ b/tests/testthat/_snaps/ppc-distributions/ppc-pit-ecdf-grouped-diff.svg @@ -20,136 +20,138 @@ - - + + - - - - - - + + + + + + - - + + - - - - - - + + + + + + - - + + - - - - - - + + + + + + - - + + - - - - - - + + + + + + - - + + - -C + +C - - + + - -D + +D - - + + - -A + +A - - + + - -B + +B - - - - - - -0.00 -0.25 -0.50 -0.75 -1.00 - - - - - - -0.00 -0.25 -0.50 -0.75 -1.00 - --0.2 -0.0 -0.2 - - - - --0.2 -0.0 -0.2 - - - -ppc_pit_ecdf_grouped (diff) + + + + + + +0.00 +0.25 +0.50 +0.75 +1.00 + + + + + + +0.00 +0.25 +0.50 +0.75 +1.00 + +-0.2 +0.0 +0.2 + + + + +-0.2 +0.0 +0.2 + + + +PIT +ECDF +ppc_pit_ecdf_grouped (diff)