Does shinyStan play well with cmdstan? I fit a model in cmdstan, with two chains and output in model_output_*.csv and then in R I did:
fit = read_stan_csv(c("model_output_1.csv","model_output_2.csv"))
I'm getting the following:
Error in samps_all[(warmup_val + 1):nIter, , , drop = FALSE] :
subscript out of bounds
In addition: Warning message:
In stan2shinystan(object) :
Most features of shinyStan are only available for models using
algorithm NUTS or algorithm HMC.
Error in samps_all[(warmup_val + 1):nIter, , , drop = FALSE] :
subscript out of bounds
Shiny does start but in the inline browser window that pops up I don't have any parameters to do anything with in the "Parameters plot" tab. It loaded something--if I go to Explore then there are parameters to choose from from my model under the "Select parameter" dropdown... no visualizations though.
Details on my setup: I ran cmdstan 2.6 on Linux, but otherwise I'm using Windows 7 with RStudio, RStan 2.6, shinyStan 1.0.0. Here's the full sessionInfo():
> sessionInfo()
R version 3.1.2 (2014-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] xtable_1.7-4 threejs_0.2.1 xts_0.9-7 zoo_1.7-11 dygraphs_0.4.1 reshape2_1.4 plyr_1.8.1 gtools_3.4.1
[9] rstan_2.6.0 inline_0.3.13 Rcpp_0.11.4 shinyStan_1.0.0 shinyBS_0.50 shiny_0.11.1 ggplot2_1.0.0 kernlab_0.9-19
loaded via a namespace (and not attached):
[1] base64_1.1 colorspace_1.2-4 digest_0.6.4 grid_3.1.2 gtable_0.1.2 htmltools_0.2.6 htmlwidgets_0.3.2
[8] httpuv_1.3.2 lattice_0.20-29 magrittr_1.5 MASS_7.3-35 mime_0.2 munsell_0.4.2 proto_0.3-10
[15] R6_2.0.1 rjson_0.2.15 RJSONIO_1.3-0 scales_0.2.4 stats4_3.1.2 stringr_0.6.2 tools_3.1.2
[22] yaml_2.1.13