Skip to content

Commit

Permalink
add mice:: as needed
Browse files Browse the repository at this point in the history
  • Loading branch information
bbolker committed Oct 27, 2024
1 parent 91f4d9a commit 6a0dc1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/test-rstanarm.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ if (suppressPackageStartupMessages(require(rstanarm, quietly = TRUE))) {
## GH 153
if (requireNamespace("mice", quietly = TRUE)) {
test_that("mice imputed data", {
data(nhanes)
imp <- mice(nhanes, m = 3, print = FALSE)
data(nhanes, package = "mice")
imp <- mice::mice(nhanes, m = 3, print = FALSE)
suppressWarnings(
capture.output(ms <- with(imp,
stan_glm(age ~ bmi + chl)))
)
expect_is(summary(pool(ms)), "mipo.summary")
expect_is(summary(mice::pool(ms)), "mipo.summary")
})
}

Expand Down

0 comments on commit 6a0dc1d

Please sign in to comment.