Error in lmBF function from BayesFactor package
Dear BayesFactor experts,
since updating to R version 4.3.2 I am getting the following error when trying to run the lmBF function from the BayesFactor package:
Error in validObject(.Object) :
invalid object of class “ddenseModelMatrix”: superclass "geMatrix" not defined in the environment of the object's class
This happens e.g. when trying to run the following code in R:
library(BayesFactor)
model = lmBF(formula = Sepal.Length ~ 1 + Species + Sepal.Width, data= iris)
I am using the newest version of the BayesFactor package (BayesFactor_0.9.12-4.7) and it still worked fine when using the previous R version.
I therefore wanted to check if other people are experiencing the same problem and if someone has an idea how to resolve this?
Many thanks in advance!
Best wishes,
Julia
Comments
I've forwarded this to Richard!
EJ
Thanks!
And sorry, I just realized there is already a github issue on this:
So it seems that re-installing MatrixModels from source helps, see this StackOverflow post:
https://stackoverflow.com/questions/77530214/error-dsparsemodelmatrix-object-superclass-xmatrix-not-defined/77530730#77530730
Hi Julia,
This is an issue with the {Matrix} package and {MatrixModels} package. You can solve it by following the advice here: https://stackoverflow.com/questions/77530214/error-dsparsemodelmatrix-object-superclass-xmatrix-not-defined/77530730#77530730
Best,
Richard