richarddmorey / BayesFactor

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

lmBF (and other functions with random factors?) always throws an error #163

Closed atkin165 closed 1 year ago

atkin165 commented 1 year ago

I've just returned to some old code for paper revisions, and my previously working lmBF models now will no longer run. Every time, I get the following error: "Error in if (...length() && any(...names() == "Dimnames")) .Object@Dimnames <- fixupDN(.Object@Dimnames) : missing value where TRUE/FALSE needed."

This seems to be a package-wide problem, as even the example code from the documentation does not work. I've tried both of the following and received the same error as above. bf = anovaBF(RT ~ shape*color + ID, data= puzzles, whichRandom = "ID") bfFull = lmBF(RT ~ shape + color + shape:color + ID, data = puzzles, whichRandom = "ID")

mwarb commented 1 year ago

@atkin165 Did you find a solution to this? I have the same issue, which seems to have happened after updating the Matrix package to the latest version.

richarddmorey commented 1 year ago

Can you provide a reproducible example with a session info and maybe an renv.lock file?