Skip to content

Commit 7155ce3

Browse files
committed
fix bivariate plot for models fit with static HMC
1 parent 560291a commit 7155ce3

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: shinystan
22
Title: Interactive Visual and Numerical Diagnostics and Posterior Analysis for
33
Bayesian Models
4-
Version: 2.2.1-1
4+
Version: 2.2.1-2
55
Date: 2016-08-31
66
Authors@R: c(person("Jonah", "Gabry", role = c("aut", "cre"),
77
email = "[email protected]"),

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### Version 2.2.1-2
2+
* Fix various issues resulting in errors for models fit using static HMC (thanks to @colemonnahan)
3+
14
### Version 2.2.1
25
* Better compatibility with latest releases of 'shinyjs' and 'DT' packages
36
* `shinystan::launch_shinystan_demo()` now works without first having to load

inst/ShinyStan/server_files/pages/explore/server/bivariate.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ bivariate_plot <- reactive({
3838
".bivariate_plot",
3939
args = list(
4040
samps = SAMPS_post_warmup,
41-
sp = if (!identical(SAMPLER_PARAMS_post_warmup, FALSE))
41+
sp = if (!identical(SAMPLER_PARAMS_post_warmup, FALSE) && STAN_ALGORITHM == "NUTS")
4242
SAMPLER_PARAMS_post_warmup else NULL,
4343
max_td = if ("max_td" %in% names(MISC)) MISC$max_td else NULL,
4444
param = input$param,

0 commit comments

Comments
 (0)