Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

extractBF-methods

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 signature '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

## Sample from the posteriors for two models
data(puzzles)

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

extractBF(bf)

BayesFactor

Computation of Bayes Factors for Common Designs

v0.9.12-4.2
GPL-2
Authors
Richard D. Morey [aut, cre, cph], Jeffrey N. Rouder [aut], Tahira Jamil [ctb, cph], Simon Urbanek [ctb, cph], Karl Forner [ctb, cph], Alexander Ly [ctb, cph]
Initial release
2018-05-09

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.