richarddmorey / BayesFactor

BayesFactor R package for Bayesian data analysis with common statistical models.
https://richarddmorey.github.io/BayesFactor/
132 stars 49 forks source link

posterior of simple bf object produced by ttestBF crashes R #58

Closed dnacombo closed 9 years ago

dnacombo commented 9 years ago

Hi,

Trying to collect samples from posterior of a simple bf object, crashes R. I can unfortunately not give more information than the sessionInfo below. R just quits with fatal error.

sessionInfo() R version 3.1.2 (2014-10-31) Platform: x86_64-w64-mingw32/x64 (64-bit)

locale: [1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252 LC_MONETARY=German_Germany.1252 [4] LC_NUMERIC=C LC_TIME=German_Germany.1252

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] BayesFactor_0.9.10-2 coda_0.16-1 lattice_0.20-29

loaded via a namespace (and not attached): [1] grid_3.1.2 gtools_3.4.1 lme4_1.1-7 MASS_7.3-35 Matrix_1.1-4 minqa_1.2.3 mvtnorm_1.0-2 nlme_3.1-118 [9] nloptr_1.0.4 pbapply_1.1-1 Rcpp_0.11.2 splines_3.1.2 stringr_0.6.2 tools_3.1.2

a = rnorm(100) b = rnorm(100,mean=1) bf = ttestBF(a,b) ch = posterior(bf,iterations=1000)

CRASH! no message is displayed.

richarddmorey commented 9 years ago

I cannot reproduce this on OSX. Does it occur every time? Or just sometimes? One thing you can try is removing and reinstalling BayesFactor and Rcpp; let me know if that helps.

dnacombo commented 9 years ago

That fixed it! thanks!