Skip to content

Commit 146ab26

Browse files
committed
fix threshold in test
1 parent 83a4ab5 commit 146ab26

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/testthat/test-double_ml_iivm_binary_outcome.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ if (on_cran) {
1010
learner = "log_reg",
1111
dml_procedure = "dml2",
1212
score = "LATE",
13-
trimming_threshold = 0,
13+
trimming_threshold = 0.025,
1414
stringsAsFactors = FALSE)
1515
} else {
1616
test_cases = expand.grid(
1717
learner = "cv_glmnet",
1818
dml_procedure = c("dml1", "dml2"),
1919
score = "LATE",
20-
trimming_threshold = 0,
20+
trimming_threshold = 0.025,
2121
stringsAsFactors = FALSE)
2222
}
2323

@@ -46,6 +46,7 @@ patrick::with_parameters_test_that("Unit tests for IIVM:",
4646
y = "y", d = "d", z = "z",
4747
n_folds = 5, smpls = iivm_hat$smpls,
4848
all_preds = iivm_hat$all_preds,
49+
trimming_threshold = trimming_threshold,
4950
score = score,
5051
bootstrap = "normal", n_rep_boot = n_rep_boot)$boot_coef
5152

0 commit comments

Comments
 (0)