Closed lindeloev closed 6 years ago
Sorry I missed this. Could you provide a reproducible example?
I tried reproducing it, but can't. So I'm closing this issue. The following runs just fine:
D = data.frame(a=c(1,2,3,4), b=c(2,3,1,4), c=c(3,1,2,0), d = c(1,1,2,2), e = matrix(1:(7*4), ncol=7))
BayesFactor::lmBF(a ~ b + c, data=D, whichRandom='d')
When running
lmBF(var1 ~ var2 + var3, data, whichRandom='var4')
wheredata
contains an "irrelevant column" (sayvar5
) that is a matrix, I get the following warning:As you can see, my data has 8590 rows and the matrix
var5
has 7 columns, giving it 60130 elements. If I remove the matrix columns (data = data[, c('var1', 'var2', 'var3', 'var4')
), the warning disappears.As far as I can see, it does not affect the results. But it was quite confusing to debug.