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

error when using re_formula argument in bayes_R2() #592

Closed
emieldl opened this issue Jan 21, 2019 · 1 comment
Closed

error when using re_formula argument in bayes_R2() #592

emieldl opened this issue Jan 21, 2019 · 1 comment
Labels
Milestone

Comments

@emieldl
Copy link

emieldl commented Jan 21, 2019

Hi,

First of all, thank you for you amazing package!
I am trying to calculate an R² value using the bayes_R2 function without the random effect.

model <- brm(mpg ~ disp + (1|cyl), data = mtcars)

with_re <- bayes_R2(model)
without_re <- bayes_R2(model, re_formula = NA)

But when setting the re_formula = NA, I get the following error-message:

Error in standata.brmsfit(x, resp = resp, re_formula = NA, check_response = TRUE, :
formal argument "re_formula" matched by multiple actual arguments

Is this an error or am I doing this wrong?

Thanks,
Best regards,
Emiel

@paul-buerkner paul-buerkner added this to the brms 2.7.0++ milestone Jan 22, 2019
paul-buerkner added a commit that referenced this issue Jan 22, 2019
@paul-buerkner
Copy link
Owner

Thanks for reporting this issue! It should now be fixed in the github version of brms to be installed via

if (!requireNamespace("devtools")) {
  install.packages("devtools")
}
devtools::install_github("paul-buerkner/brms")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants