aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2019-02-25 18:12:57 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2019-02-25 18:12:57 +0100
commitd2712bbe66b3af861053c58a6b412eebbd9c5623 (patch)
tree2fde41ad2c84577963049a67e217ea0c00ee8bfe /tests
parent26ea2f6010608251a759f41e7216f914c28e362a (diff)
Basic test for two-component reweighting
Diffstat (limited to 'tests')
-rw-r--r--tests/testthat/test_irls.R4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/testthat/test_irls.R b/tests/testthat/test_irls.R
index 76ee73b5..f61f793d 100644
--- a/tests/testthat/test_irls.R
+++ b/tests/testthat/test_irls.R
@@ -41,6 +41,10 @@ test_that("Reweighting method 'obs' works", {
})
test_that("Reweighting method 'tc' works", {
+ fit_irls_2 <- mkinfit(m_synth_SFO_lin, SFO_lin_a, reweight.method = "tc", quiet = TRUE)
+ parms_2 <- round(fit_irls_2$bparms.optim, c(1, 4, 4, 4, 4, 4))
+ expect_equivalent(parms_2, c(102.1, 0.7393, 0.2992, 0.0202, 0.7687, 0.7229))
+
skip("Too much trouble with datasets that are randomly generated")
# I need to make the tc method more robust against that
# skip_on_cran()

Contact - Imprint