aboutsummaryrefslogtreecommitdiff
path: root/tests/testthat/test_multistart.R
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testthat/test_multistart.R')
-rw-r--r--tests/testthat/test_multistart.R8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/testthat/test_multistart.R b/tests/testthat/test_multistart.R
index 60fdefdc..e5b44e78 100644
--- a/tests/testthat/test_multistart.R
+++ b/tests/testthat/test_multistart.R
@@ -1,10 +1,14 @@
context("Multistart method for saem.mmkin models")
test_that("multistart works for saem.mmkin models", {
- saem_sfo_s_multi <- multistart(sfo_saem_1, n = 8, cores = n_cores)
+ set.seed(123456)
+ saem_sfo_s_multi <- multistart(sfo_saem_1_reduced, n = 8, cores = n_cores,
+ no_random_effect = "parent_0")
- llhist_sfo <- function() llhist(saem_sfo_s_multi, xlim = c(-644, -647))
+ llhist_sfo <- function() llhist(saem_sfo_s_multi)
+ parhist_sfo <- function() parhist(saem_sfo_s_multi, ylim = c(0.5, 2))
vdiffr::expect_doppelganger("llhist for sfo fit", llhist_sfo)
+ vdiffr::expect_doppelganger("parhist for sfo fit", parhist_sfo)
set.seed(123456)
saem_biphasic_m_multi <- multistart(saem_biphasic_m, n = 8,

Contact - Imprint