richarddmorey / BayesFactor

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

include fallback integration method when gaussian quadrature fails #40

Closed richarddmorey closed 9 years ago

richarddmorey commented 9 years ago

Gaussian quadrature has a tendency to fail when effect sizes are very small (for instance, very small correlations). A fallback (Laplace or sampler) needs to be included for when quadrature fails.

richarddmorey commented 9 years ago

Partially fixed this, with the t test. Large t statistics cause an approximation to be invoked.

richarddmorey commented 9 years ago

This should be largely fixed, due to improvements in the quadrature calls.