richarddmorey / BayesFactor

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

logSummaryStats gives undesired results with NAs in vector #60

Closed richarddmorey closed 9 years ago

richarddmorey commented 9 years ago
logSummaryStats(c(1, 1, NA ) )

should return NAs, but instead returns:

$logMean
[1] 1

$logVar
[1] -Inf

$cumLogMean
[1] 1 1 1