Skip to content

Instantly share code, notes, and snippets.

@saralilyb
Created March 26, 2017 12:01
Show Gist options
  • Save saralilyb/f2271e8116bfd566096bb175185b2956 to your computer and use it in GitHub Desktop.
Save saralilyb/f2271e8116bfd566096bb175185b2956 to your computer and use it in GitHub Desktop.
compare bayesfactor models in R with the random baseline
# compares bayesfactor analyses relative to the last, which is the random only model (just participants)
compbf <- function(m) {
m[c(1:(length(m)-1))]/m[length(m)]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment