Skip to content

Commit

Permalink
fix displaying BF instead of marginal likelihood in model summary
Browse files Browse the repository at this point in the history
  • Loading branch information
FBartos committed Sep 18, 2023
1 parent c57670c commit 75eec32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/robustbayesianmetaanalysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ RobustBayesianMetaAnalysis <- function(jaspResults, dataset, options, state = NU

# compute the BF requested
if (options[["inferenceModelsOverviewBfComparison"]] == "inclusion") {
bf <- fitSummary[["summary"]][, 7]
bf <- fitSummary[["summary"]][, 8]
} else if (options[["inferenceModelsOverviewBfComparison"]] == "best") {
bf <- exp(fitSummary[["summary"]][["marglik"]] - max(fitSummary[["summary"]][["marglik"]]))
} else if (options[["inferenceModelsOverviewBfComparison"]] == "previous") {
Expand Down

0 comments on commit 75eec32

Please sign in to comment.