Skip to content

Commit 6dacc42

Browse files
committed
Update test-ppc-discrete.R
don't use fullrank in testing MCMC fast enough
1 parent 929ceec commit 6dacc42

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/testthat/test-ppc-discrete.R

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@ context("PPC: discrete")
55

66
# bar plots ---------------------------------------------------------------
77
data("esoph", package = "datasets")
8-
capture.output(
9-
fit <- stan_polr(tobgp ~ agegp, data = esoph, method = "probit",
10-
prior = R2(0.2, "mean"), init_r = 0.1, seed = 12345,
11-
algorithm = "fullrank") # for speed only
12-
)
8+
fit <- stan_polr(tobgp ~ agegp, data = esoph, method = "probit", prior = R2(0.2, "mean"),
9+
init_r = 0.1, seed = 12345, chains = 1, iter = 500, refresh = 0)
1310
y <- as.integer(fit$y)
1411
yrep_char <- posterior_predict(fit, draws = 10)
1512
yrep <- sapply(data.frame(yrep_char, stringsAsFactors = TRUE), as.integer)

0 commit comments

Comments
 (0)