From d2712bbe66b3af861053c58a6b412eebbd9c5623 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Mon, 25 Feb 2019 18:12:57 +0100 Subject: Basic test for two-component reweighting --- tests/testthat/test_irls.R | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') 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() -- cgit v1.2.1