-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Bayes Factors now printed out under both fixed and random for variables specified only as fixed #351
Comments
Hmm... I am unable to recreate the printing issue you encountered. mod1 = brm(var_9 | weights(var_17) ~
var_20 + var_19 +
var_13* var_24* var_2 +
var_12* var_24* var_2 +
(1 |var_6) + (1 | var_6:var_5), data = mydat,
prior = out_priors_B,
iter=niter, warmup=nwarmup, chains=nchains,cores=2,
seed=12,
control = list(adapt_delta = 0.9)
)
bayesfactor_parameters(mod1, null = 0)
#> # Bayes Factor (Savage-Dickey density ratio)
#>
#> Parameter | BF
#> --------------------------
#> Intercept | 0.030
#> var_20M | 0.012
#> var_194 | 0.018
#> var_195 | 0.024
#> var_13N | 0.201
#> var_24 | 3.705e+07
#> var_2 | 5.463e+13
#> var_12N | 0.020
#> var_13N.var_24 | 0.013
#> var_13N.var_2 | 588.455
#> var_24.var_2 | 3295.248
#> var_24.var_12N | 0.014
#> var_2.var_12N | 0.024
#> va13Nvar_2 | 0.043
#> va24var_12N | 0.022
#>
#> * Evidence Against The Null: [0] @alecristia can you copy you |
No, can't reproduce, either. I got the same output as @mattansb |
I have this issue in two computers - pasting the other one in another comment (soon) |
some of the easystats-core packages are out of date. I suggest updating your packages, and then try again. |
issue persisted after all packages except for data.table were updated. |
Strange, indeed. After updating packages, can you please provide a reprex, probably also using the reprex package? Including session info? |
I'm not sure I can attest to this being reproducible for someone else. I can reproduce it in my system, using the same data and code I linked in my first comment: BFfixed-random.zip The output just now:
|
Looking at your sessionInfo, I still see:
Both packages are out of date, the current versions are insight 0.11.1 and bayestestR 0.8.0. Thus, I'd say that your problem is still related to the older package versions. |
Closing for now. Please reopen if the issue persists even after updating packages. |
The error has disappeared from my mac mini, documenting current state of affairs :
|
Question and context
Below I provide full code and data to show that parameters are printed out under "random" even though they are only fixed. I fit a model back in July and again now; the problem I describe emerged in between these two dates. I had also kept a .rds of the July model fit, and applying BF analyses to that rds also results in a few parameters being printed out under "random effects" -- but not all of them. Similar to the full example below, the actual BFs are identical across fixed & random printouts in the BF analysis of the July model fit.
Example
Full code & data: BFfixed-random.zip
This is the model fitting code, notice that the only random effects are var6 and var5:
And the BF estimation code
produces this output, where all variables appear under both fixed and random, with the exact same BF values:
If you can tell me whether I'm doing something wrong, or whether this is just a bug in the print out that I can safely ignore, I would be grateful.
The text was updated successfully, but these errors were encountered: