Skip to content

Different Bayes factors from rstanarm vs BayesFactor #459

Answered by mattansb
gbiele asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @gbiele,

This isn't really an issue with bayestestR, but has to do with differences between rstanarm and BayesFactor.
I will try to give the gist nonetheless (:

This all has to do with Stan (via rstanarm, or brms) using a very different parameterization than BayesFactor.

Just to give an example:

  • In rstanarm the priors are scaled, but they are scaled by SDy = the unconditional SD of y.
  • In BayesFactor the prios are also scaled, but they are scaled by σy = the conditional SD of y.

(There are many many other differences - how estimation of sigma is done, how random effects are treated... etc.)

In other words, this isn't a bug - just different flavors of priors.

Hope this helps!

Replies: 4 comments 14 replies

Comment options

You must be logged in to vote
6 replies
@gbiele
Comment options

@jhmaindonald
Comment options

@mattansb
Comment options

@richarddmorey
Comment options

@mattansb
Comment options

Answer selected by gbiele
Comment options

You must be logged in to vote
5 replies
@mattansb
Comment options

@gbiele
Comment options

@mattansb
Comment options

@jhmaindonald
Comment options

@mattansb
Comment options

Comment options

You must be logged in to vote
2 replies
@mattansb
Comment options

@gbiele
Comment options

Comment options

You must be logged in to vote
1 reply
@mattansb
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #458 on September 02, 2021 08:19.