richarddmorey / BayesFactor

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

recompute() fails #98

Closed richarddmorey closed 7 years ago

richarddmorey commented 7 years ago

The code

data = data.frame(dv = rnorm(100), prime = factor(sample(rep(c(0,1),each=50))))
bf <- ttestBF(formula = dv ~ prime, data = data)
recompute(bf)

yields the error:

 Error in (function (cl, name, valueClass)  : assignment of an object of class “BFBayesFactor” is not valid for @‘analysis’ in an object of class “BFindepSample”; is(value, "list") is not TRUE