posteriorModelOdds {MDMA} | R Documentation |
Posterior model odds
Description
Calculate the posterior model odds for a set of models.
Usage
posteriorModelOdds(...)
Arguments
... |
objects of class |
Details
Posterior model odds are calculated for every model as
where the minimal BIC value is subtracted from all BICs. In other words: the model with the lowest BIC has .
Value
posteriorModelOdds
returns to posterior model odds for the models provided.
Author(s)
Mathijs Deen
Examples
lm.1 <- lm(mpg ~ hp + wt, data = mtcars)
lm.2 <- lm(mpg ~ hp * wt, data = mtcars)
lm.3 <- lm(mpg ~ hp * wt + gear, data = mtcars)
posteriorModelOdds(lm.1, lm.2, lm.3)
[Package MDMA version 1.1.0 Index]