Skip to content

Commit

Permalink
lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Oct 29, 2023
1 parent cef54e1 commit 8b9b014
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/r2_bayes.R
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,10 @@ r2_posterior.BFBayesFactor <- function(model,


# Compute posterior model probabilities
if (!is.null(prior_odds)) {
prior_odds <- c(1, prior_odds)
} else {
if (is.null(prior_odds)) {
prior_odds <- rep(1, nrow(BFMods))
} else {
prior_odds <- c(1, prior_odds)
}
posterior_odds <- prior_odds * BFMods$BF
posterior_odds <- posterior_odds[-1] / posterior_odds[1]
Expand Down

0 comments on commit 8b9b014

Please sign in to comment.