Skip to content

Commit 3476f65

Browse files
committed
fix test-extractors
1 parent fd4219a commit 3476f65

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/testthat/test-extractors.R

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ context("Extractors")
44

55
ITER <- 1000
66
CHAINS <- 3
7-
capture.output(
8-
fit <- stan_glm(mpg ~ wt + am, data = mtcars,
7+
fit <- stan_glm(mpg ~ wt + am, data = mtcars,
98
iter = ITER, chains = CHAINS, refresh = 0)
10-
)
119

1210
x <- list(cbind(a = 1:3, b = rnorm(3)), cbind(a = 1:3, b = rnorm(3)))
1311

@@ -79,7 +77,6 @@ test_that("neff_ratio.stanreg returns correct structure", {
7977
test_that("rhat.stanfit returns correct structure", {
8078
r <- rhat(fit$stanfit)
8179
expect_named(r)
82-
r <- r[!names(r) %in% "mean_PPD"]
8380
expect_equal(r, summary(fit)[, "Rhat"])
8481

8582
r2 <- rhat(fit$stanfit, pars = c("wt", "sigma"))
@@ -92,7 +89,6 @@ test_that("neff_ratio.stanreg returns correct structure", {
9289

9390
ratio <- neff_ratio(fit$stanfit)
9491
expect_named(ratio)
95-
ratio <- ratio[!names(ratio) %in% "mean_PPD"]
9692
ans <- summary(fit)[, "n_eff"] / denom
9793
expect_equal(ratio, ans, tol = 0.001)
9894

0 commit comments

Comments
 (0)