Skip to content

Commit

Permalink
update blavCompare() manpage
Browse files Browse the repository at this point in the history
  • Loading branch information
ecmerkle committed Jan 8, 2024
1 parent 3fa02cc commit 792b9a8
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions man/blavCompare.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,23 @@ blavCompare(object1, object2, ...)
\item{\dots}{Other arguments to loo().}
}
\details{
This function approximates the log-Bayes factor of two candidate models using the Laplace approximation to each model's marginal log-likelihood.
This function computes Bayesian model comparison metrics, including a
Bayes factor approximation, WAIC, and LOOIC.

The log-Bayes factor of the two models is based on the Laplace
approximation to each model's marginal log-likelihood.
The WAIC and LOOIC metrics come from the loo package. The ELPD
difference and SE specifically come from loo::loo_compare().
}
\value{
The log-Bayes factor approximation, along with each model's approximate marginal log-likelihood.
A list containing separate results for log-Bayes factor, WAIC, LOOIC,
and differences between WAIC and LOOIC.
}
\references{
Raftery, A. E. (1993). Bayesian model selection in structural equation models. In K. A. Bollen & J. S. Long (Eds.), Testing structural equation models (pp. 163-180). Beverly Hills, CA: Sage.
Vehtari A, Gelman A, Gabry J (2017). “Practical Bayesian model evaluation using leave-one-out cross-validation and WAIC.” _Statistics and Computing_, *27*, 1413-1432.
}
\examples{
\dontrun{
Expand Down

0 comments on commit 792b9a8

Please sign in to comment.