richarddmorey / BayesFactor

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

generalTestBF(): error with a particular analysis #51

Closed jonathon-love closed 9 years ago

jonathon-love commented 9 years ago

using BayesFactor 0.9.10-2

x <- as.factor(1:10)
y <- 1:10
d <- data.frame(x, y)

generalTestBF(y ~ x, d)

outputs

>  |                                                                                                          |   0%
> Error in `[.data.frame`(summary(aov(formula, data = data))[[1]], "F value") : 
>   undefined columns selected
richarddmorey commented 9 years ago

Hmm, yes, that corresponds to a nonsense analysis. I can make that yield an error earlier on.