BayesFactor (version 0.9.12-4.2)

extractBF: Extract the Bayes factor from an object

Description

Extract the Bayes factor from an object

Usage

extractBF(x, logbf = FALSE, onlybf = FALSE)

# S4 method for BFBayesFactor extractBF(x, logbf = FALSE, onlybf = FALSE)

Arguments

x

object from which to extract the Bayes factors

logbf

return the logarithm of the Bayes factors

onlybf

return a vector of only the Bayes factors

Value

Returns an object containing Bayes factors extracted from the object

Examples

Run this code
# NOT RUN {
## Sample from the posteriors for two models
data(puzzles)

bf = lmBF(RT ~ shape*color + ID, data = puzzles, whichRandom="ID", progress=FALSE)

extractBF(bf)
# }

Run the code above in your browser using DataCamp Workspace