diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2020-05-29 15:03:04 +0200 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2020-05-29 15:03:04 +0200 |
commit | 510436646b1bdd5b8cfab70be29334bd3cc9c828 (patch) | |
tree | 4b3e26f658e822e18d09e2d939a5c89214566b6d /tests/testthat/test_SFORB.R | |
parent | 609bfe2fd7ecbdcad5f5d641f0db51541dcd6a4e (diff) |
Warn if standardized residuals are unlikely normal
This revealed a bug in the data returned in mkinfit$data in the case
of the d_3 algorithm, which also affected the residual plot - the
data from the direct fitting was not returned even if this was
the better method.
Diffstat (limited to 'tests/testthat/test_SFORB.R')
-rw-r--r-- | tests/testthat/test_SFORB.R | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/testthat/test_SFORB.R b/tests/testthat/test_SFORB.R index 4fb736ec..91c8f2fb 100644 --- a/tests/testthat/test_SFORB.R +++ b/tests/testthat/test_SFORB.R @@ -1,5 +1,8 @@ context("Fitting the SFORB model") +# We do not want the warnings due to non-normality of residuals here +warn_option <- options(warn=-1) + test_that("Fitting the SFORB model is equivalent to fitting DFOP", { f_sforb <- mkinfit("SFORB", FOCUS_2006_C, quiet = TRUE) f_dfop <- mkinfit("DFOP", FOCUS_2006_C, quiet = TRUE) @@ -32,3 +35,5 @@ test_that("Fitting the SFORB model is equivalent to fitting DFOP", { expect_equivalent(endpoints(f_sforb_sfo_eigen)$distimes, endpoints(f_dfop_sfo)$distimes, tolerance = 1e-6) }) + +options(warn = warn_option$warn) |