richarddmorey / BayesFactor

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

ttest.tstat gives error with n > 46340 #61

Closed nicebread closed 9 years ago

nicebread commented 9 years ago

While running a simulation, ttest.tstat gives an error when n > 46340 (because 46340^2 exceeds the integer range and produces an integer overflow). Such sample sizes might be rare in reality, but maybe it would be nice if the function does not return an error but rather NA or NULL?

richarddmorey commented 9 years ago

hmmmm, yes; there also might be a way around the problem. I'll take a look. Can you provide a reproducible example just for my reference?

nicebread commented 9 years ago

Oops - very strange: I cannot reproduce the error any more. I'm closing the issue. If I discover it again, I'll tell you.