File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,8 @@ context("Extractors")
4
4
5
5
ITER <- 1000
6
6
CHAINS <- 3
7
- capture.output(
8
- fit <- stan_glm(mpg ~ wt + am , data = mtcars ,
7
+ fit <- stan_glm(mpg ~ wt + am , data = mtcars ,
9
8
iter = ITER , chains = CHAINS , refresh = 0 )
10
- )
11
9
12
10
x <- list (cbind(a = 1 : 3 , b = rnorm(3 )), cbind(a = 1 : 3 , b = rnorm(3 )))
13
11
@@ -79,7 +77,6 @@ test_that("neff_ratio.stanreg returns correct structure", {
79
77
test_that(" rhat.stanfit returns correct structure" , {
80
78
r <- rhat(fit $ stanfit )
81
79
expect_named(r )
82
- r <- r [! names(r ) %in% " mean_PPD" ]
83
80
expect_equal(r , summary(fit )[, " Rhat" ])
84
81
85
82
r2 <- rhat(fit $ stanfit , pars = c(" wt" , " sigma" ))
@@ -92,7 +89,6 @@ test_that("neff_ratio.stanreg returns correct structure", {
92
89
93
90
ratio <- neff_ratio(fit $ stanfit )
94
91
expect_named(ratio )
95
- ratio <- ratio [! names(ratio ) %in% " mean_PPD" ]
96
92
ans <- summary(fit )[, " n_eff" ] / denom
97
93
expect_equal(ratio , ans , tol = 0.001 )
98
94
You can’t perform that action at this time.
0 commit comments