1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aaGenerics.R, R/methods-BFBayesFactor.R
\docType{methods}
\name{extractBF}
\alias{extractBF}
\alias{extractBF,BFBayesFactor-method}
\title{Extract the Bayes factor from an object}
\usage{
extractBF(x, logbf = FALSE, onlybf = FALSE)
\S4method{extractBF}{BFBayesFactor}(x, logbf = FALSE, onlybf = FALSE)
}
\arguments{
\item{x}{object from which to extract the Bayes factors}
\item{logbf}{return the logarithm of the Bayes factors}
\item{onlybf}{return a vector of only the Bayes factors}
}
\value{
Returns an object containing Bayes factors extracted from the object
}
\description{
Extract the Bayes factor from an 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)
}
|