aboutsummaryrefslogtreecommitdiff
path: root/tests/testthat/test_mhmkin.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2022-11-04 18:12:03 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2022-11-04 18:12:03 +0100
commit9d013773edc0dc30a98c6218655726d3ad944e3f (patch)
tree4776d72b2fe2e5bddd97249fcff040db668d6936 /tests/testthat/test_mhmkin.R
parent85cb80385bb26f40d1c1a40bbda457dd29c4cc23 (diff)
Attempt at automatic setting of random effects
Based on parameters in the separate fits that fail the t-test.
Diffstat (limited to 'tests/testthat/test_mhmkin.R')
-rw-r--r--tests/testthat/test_mhmkin.R14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/testthat/test_mhmkin.R b/tests/testthat/test_mhmkin.R
index 9fd29c50..93333ac1 100644
--- a/tests/testthat/test_mhmkin.R
+++ b/tests/testthat/test_mhmkin.R
@@ -38,12 +38,22 @@ test_that("Multiple hierarchical kinetic models can be fitted and diagnosed", {
expect_known_output(print(test_summary, digits = 1),
"summary_hfit_sfo_tc.txt")
- # It depends on the platform exactly which of the
- # SFO datasets fail to converge with FOMC
+ # It depends on the platform exactly which of the datasets fail to converge
+ # with FOMC, because they were generated to be SFO
skip_on_travis()
expect_known_output(
print(fits_synth_const),
"print_fits_synth_const.txt")
+ hfits_no_ranef_auto <- update(hfits, no_random_effect = "auto", auto_ranef_threshold = 2)
+
+ expect_known_output(
+ print(hfits_no_ranef_auto),
+ "print_hfits_synth_no_ranef_auto.txt")
+
+ expect_known_output(
+ print(illparms(hfits_no_ranef_auto)),
+ "illparms_hfits_synth_no_ranef_auto.txt")
+
})

Contact - Imprint