General S4 class for representing a collection of Bayes factor model comprisons, each against a different denominator
BFBayesFactorList class is a general S4 class
for representing models model comparison via Bayes
factor. See the examples for demonstrations of
BFBayesFactorList objects inherit from
lists, and contain a single slot:
character string giving the version and revision number of the package that the model was created in
Each element of the list contains a single
object. Each element of the list must have the same
numerators, in the same order, as all the others. The
list object is displayed as a matrix of Bayes factors.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
## Compute some Bayes factors to demonstrate Bayes factor lists data(puzzles) bfs <- anovaBF(RT ~ shape*color + ID, data = puzzles, whichRandom = "ID", progress=FALSE) ## Create a matrix of Bayes factors bfList <- bfs / bfs bfList ## Use indexing to select parts of the 'matrix' bfList[1,] bfList[,1] ## We can use the t (transpose) function as well, to get back a BFBayesFactor t(bfList[2,]) ## Or transpose the whole matrix t(bfList)
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.