bayestestR icon indicating copy to clipboard operation
bayestestR copied to clipboard

diagnostic_posterior bug

Open DominiqueMakowski opened this issue 2 years ago • 4 comments

I've encountered a few times a bug (that led to upstream bugs in parameters())

But I can't reproduce it... I don't know if it's a matter of like model convergence of what, but opening that issue in case someone confirms the bug or manages to reproduce it.

data <- lme4::sleepstudy
model <- brms::brm(Reaction ~ Days + (1 | Subject), data = data, refresh = 0, algorithm = "meanfield", seed = 333)

bayestestR::diagnostic_posterior(model)
#>     Parameter     Khat
#> 1      b_Days 4.609439
#> 2 b_Intercept 5.122897

Created on 2022-03-26 by the reprex package (v2.0.1)

DominiqueMakowski avatar Mar 26 '22 02:03 DominiqueMakowski

What's the issue here?

strengejacke avatar Mar 26 '22 07:03 strengejacke

I got an error while running the example above, but I can't reproduce it 😕

DominiqueMakowski avatar Mar 27 '22 08:03 DominiqueMakowski

Seems to be related to the sampling algorithm? If you remove "meanfield", more diagnostics are done.

strengejacke avatar Mar 27 '22 09:03 strengejacke

no but the error was a complete error, it failed entirely... I'll post a reprex if I manage to reproduce it someday

DominiqueMakowski avatar Mar 27 '22 09:03 DominiqueMakowski

closing for now, we can open a new issue if we encounter this problem again.

strengejacke avatar Mar 14 '23 17:03 strengejacke