richarddmorey / BayesFactor

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

anovaBF error: Error in integrate(f2... non-finite function value #22

Closed jonathon-love closed 10 years ago

jonathon-love commented 10 years ago
data <- read.table("ssgo-fred.csv", sep=",", header=TRUE)

data$target <- as.factor(data$target)
data$difficulty <- as.factor(data$difficulty)
data$response <- as.factor(data$response)

anovaBF(block ~ target * difficulty + response, data, whichRandom="response")

outputs

  |++++++++++++++++++++++++++++++++++++++++          |  80%
Error in integrate(f2, 0, Inf, y = y, Xm = X, rscale = rscale, gMap = gMap,  : 
  non-finite function value
  |++++++++++++++++++++++++++++++++++++++++++++++++++| 100%
Bayes factor analysis
--------------
[1] target + response                                  : NA ±NA%
[2] difficulty + response                              : NA ±NA%
[3] target + difficulty + response                     : NA ±NA%
[4] target + difficulty + target:difficulty + response : NA ±NA%

will email .csv