Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save estimates as well as data #334

Merged
merged 9 commits into from
Dec 8, 2023
Prev Previous commit
Next Next commit
test when estimates being dropped
joethorley committed Dec 8, 2023
commit 3a31d2a7481be35a115b92d2e16e42c838770246
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/hc/hc_notallestimates.csv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
dist,percent,est,se,lcl,ucl,wt,method,nboot
average,5,1.64901,0.384673,1.36309,2.46218,1,parametric,10
dist,percent,est,se,lcl,ucl,wt,method,nboot,pboot
average,5,1.64901,0.384673,1.36309,2.46218,1,parametric,10,0.9
2 changes: 1 addition & 1 deletion tests/testthat/test-hc.R
Original file line number Diff line number Diff line change
@@ -665,7 +665,7 @@ test_that("not all estimates if fail", {
set.seed(49)
hc <- ssd_hc(fit, nboot = 10, ci = TRUE,
parametric = TRUE, save_to = dir, min_pboot = 0.8)
expect_snapshot_boot_data(hc, "hc_notallestimates")
expect_snapshot_data(hc, "hc_notallestimates")
expect_identical(list.files(dir), c("data_000000000_multi.csv", "data_000000001_multi.csv", "data_000000002_multi.csv",
"data_000000003_multi.csv", "data_000000004_multi.csv", "data_000000005_multi.csv",
"data_000000006_multi.csv", "data_000000007_multi.csv", "data_000000008_multi.csv",