From 5364f037a72863ef5ba81e14ba4417f68fd389f9 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Fri, 18 Nov 2022 19:14:47 +0100 Subject: Make mixed model test data permanent to ensure reproducibility To ensure that tests on different platforms work on the same data, the mixed modelling test data previosly generated in tests/testthat/setup_script.R were generated once using the script in inst/dataset/generation/ds_mixed.R, and are now distributed with the package. --- .../multistart/llhist-for-biphasic-saemix-fit.svg | 62 ------- .../_snaps/multistart/llhist-for-dfop-sfo-fit.svg | 62 +++++++ .../_snaps/multistart/llhist-for-sfo-fit.svg | 30 +-- .../multistart/parplot-for-biphasic-saemix-fit.svg | 201 --------------------- .../_snaps/multistart/parplot-for-dfop-sfo-fit.svg | 201 +++++++++++++++++++++ .../_snaps/multistart/parplot-for-sfo-fit.svg | 90 ++++----- 6 files changed, 325 insertions(+), 321 deletions(-) delete mode 100644 tests/testthat/_snaps/multistart/llhist-for-biphasic-saemix-fit.svg create mode 100644 tests/testthat/_snaps/multistart/llhist-for-dfop-sfo-fit.svg delete mode 100644 tests/testthat/_snaps/multistart/parplot-for-biphasic-saemix-fit.svg create mode 100644 tests/testthat/_snaps/multistart/parplot-for-dfop-sfo-fit.svg (limited to 'tests/testthat/_snaps/multistart') diff --git a/tests/testthat/_snaps/multistart/llhist-for-biphasic-saemix-fit.svg b/tests/testthat/_snaps/multistart/llhist-for-biphasic-saemix-fit.svg deleted file mode 100644 index 6015aed8..00000000 --- a/tests/testthat/_snaps/multistart/llhist-for-biphasic-saemix-fit.svg +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - -Frequency of log likelihoods - - - - - - - --1149.5 --1149.4 --1149.3 --1149.2 --1149.1 --1149.0 - - - - - - -0 -1 -2 -3 -4 - - - - - - - - - - - - - - -original fit - - diff --git a/tests/testthat/_snaps/multistart/llhist-for-dfop-sfo-fit.svg b/tests/testthat/_snaps/multistart/llhist-for-dfop-sfo-fit.svg new file mode 100644 index 00000000..6015aed8 --- /dev/null +++ b/tests/testthat/_snaps/multistart/llhist-for-dfop-sfo-fit.svg @@ -0,0 +1,62 @@ + + + + + + + + + + + + +Frequency of log likelihoods + + + + + + + +-1149.5 +-1149.4 +-1149.3 +-1149.2 +-1149.1 +-1149.0 + + + + + + +0 +1 +2 +3 +4 + + + + + + + + + + + + + + +original fit + + diff --git a/tests/testthat/_snaps/multistart/llhist-for-sfo-fit.svg b/tests/testthat/_snaps/multistart/llhist-for-sfo-fit.svg index 98513d06..028c69de 100644 --- a/tests/testthat/_snaps/multistart/llhist-for-sfo-fit.svg +++ b/tests/testthat/_snaps/multistart/llhist-for-sfo-fit.svg @@ -25,20 +25,22 @@ --649.836 --649.834 --649.832 --649.830 --649.828 +-646.124 +-646.123 +-646.122 +-646.121 +-646.120 - - + + + 0 -1 -2 -3 +1 +2 +3 +4 @@ -46,11 +48,11 @@ - + - - - + + + original fit diff --git a/tests/testthat/_snaps/multistart/parplot-for-biphasic-saemix-fit.svg b/tests/testthat/_snaps/multistart/parplot-for-biphasic-saemix-fit.svg deleted file mode 100644 index 7017908e..00000000 --- a/tests/testthat/_snaps/multistart/parplot-for-biphasic-saemix-fit.svg +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -parent_0 -f_parent_to_m1 -k2 -g -a.1 -b.1 -SD.log_k_m1 -SD.log_k1 -SD.g_qlogis - - - - - -0.5 -1.0 -1.5 -2.0 -Normalised parameters - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Starting parameters -Original run -Multistart runs - - diff --git a/tests/testthat/_snaps/multistart/parplot-for-dfop-sfo-fit.svg b/tests/testthat/_snaps/multistart/parplot-for-dfop-sfo-fit.svg new file mode 100644 index 00000000..7017908e --- /dev/null +++ b/tests/testthat/_snaps/multistart/parplot-for-dfop-sfo-fit.svg @@ -0,0 +1,201 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +parent_0 +f_parent_to_m1 +k2 +g +a.1 +b.1 +SD.log_k_m1 +SD.log_k1 +SD.g_qlogis + + + + + +0.5 +1.0 +1.5 +2.0 +Normalised parameters + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Starting parameters +Original run +Multistart runs + + diff --git a/tests/testthat/_snaps/multistart/parplot-for-sfo-fit.svg b/tests/testthat/_snaps/multistart/parplot-for-sfo-fit.svg index 18eb7fcc..a47a585a 100644 --- a/tests/testthat/_snaps/multistart/parplot-for-sfo-fit.svg +++ b/tests/testthat/_snaps/multistart/parplot-for-sfo-fit.svg @@ -25,42 +25,44 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -87,15 +89,15 @@ - - - - - - - - - + + + + + + + + + -- cgit v1.2.1