Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bayesian_as_frequentist errors with mixed-model BayesFactor models #505

Open
mattansb opened this issue Mar 4, 2022 · 0 comments
Open
Labels
Bug 🐛 Something isn't working

Comments

@mattansb
Copy link
Member

mattansb commented Mar 4, 2022

related to easystats/performance#242

library(BayesFactor)

mtcars$cyl <- factor(mtcars$cyl)
mtcars$gear <- factor(mtcars$gear)

model <- lmBF(mpg ~ cyl + gear + cyl:gear, mtcars, 
              progress = FALSE, whichRandom = c("gear", "cyl:gear"))

bayesian_as_frequentist(model)
#> Error in bayesian_as_frequentist(model): could not find function "bayesian_as_frequentist"

This model should be translated to:

lme4::lmer(mpg ~ cyl + (cyl || gear), # note the uncorrelated random effects
          data = insight::get_data(model))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants