I am working on a multivariate probit model to deal with some individual patient data I hope to incorporate into a larger epidemiological meta-analysis. I had been banging my head against a wall for quite some time until I came across Bob’s post (
https://groups.google.com/d/msg/stan-users/0qdtaoAl1us/xC4Vh2MDpj4J) and the related model provided in the reference manual, which looks to be precisely what I need. However, I am having trouble getting the code to produce high n_eff. Specifically, when I run the sample code – even if I increase the number of iterations as high as 10000 per chain – I sometimes end up with very low n_eff for several parameters (some in the range of 400) and the following warning message:
2: There were 4 chains where the estimated Bayesian Fraction of Missing Information was low. See
Given that this is sample code, I thought I would check to see whether the warning is something I should be worrying about/trying to correct, or if it were simply a fact of life when fitting these sorts of models in Stan. From reading this thread (
https://groups.google.com/d/msg/stan-users/JDMqS13wi2s/dYR64q20BQAJ) it seems that low n_eff is not necessarily fatal in this model. If so, should I just increase the number of iterations even further (which – besides re-parameterization – seems to be the suggestion in the FAQ)? I am running rstan 2.13.2 (gcc version 4.2.1). I ran the code as posted in the above link with the exception of increasing the number of iterations and adding control=list(adapt_delta=.99, stepsize=.01). In case it matters, my actual application will involve estimating the prevalence of 8 rare (prevalence < 10%) disorders as well as their covariance. But I have not gotten that far yet.
Here is my sessionInfo():
R version 3.3.1 (2016-06-21)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.11.6 (El Capitan)
locale:
[1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] foreign_0.8-67 openxlsx_3.0.0 psych_1.6.9 rstan_2.13.2 StanHeaders_2.13.1
[6] ggplot2_2.2.0 reshape2_1.4.2 metafor_1.9-9 Matrix_1.2-7.1 dplyr_0.5.0
[11] SimCorMultRes_1.4.2 MASS_7.3-45
loaded via a namespace (and not attached):
[1] Rcpp_0.12.8 magrittr_1.5 mnormt_1.5-5 evd_2.3-2 munsell_0.4.3 colorspace_1.3-2
[7] lattice_0.20-34 R6_2.2.0 stringr_1.1.0 plyr_1.8.4 tools_3.3.1 parallel_3.3.1
[13] grid_3.3.1 gtable_0.2.0 DBI_0.5-1 lazyeval_0.2.0 assertthat_0.1 tibble_1.2
[19] gridExtra_2.2.1 codetools_0.2-15 rsconnect_0.7 inline_0.3.14 stringi_1.1.2 scales_0.4.1
[25] stats4_3.3.1