Skip to content

Commit

Permalink
Issues with blavaan
Browse files Browse the repository at this point in the history
Fixes #627
  • Loading branch information
strengejacke committed Jul 23, 2024
1 parent 7be1c64 commit 5f03206
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/bayesfactor_models.R
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,10 @@ as.matrix.bayesfactor_models <- function(x, ...) {
bf_method = "method",
unsupported_models = FALSE,
model_names = NULL) {
# sanity check - are all BF NA?
if (!is.null(res$log_BF) && all(is.na(res$log_BF))) {
insight::format_error("Could not calculate Bayes Factor for these models. You may report this problem at {https://github.com/easystats/bayestestR/issues/}.") # nolint
}
attr(res, "denominator") <- denominator
attr(res, "BF_method") <- bf_method
attr(res, "unsupported_models") <- unsupported_models
Expand Down

0 comments on commit 5f03206

Please sign in to comment.