BFodds-class | R Documentation |

The `BFodds`

class is a general S4 class for representing models model comparison via prior or posterior odds.

```
## S4 method for signature 'numeric,BFodds'
e1 / e2
## S4 method for signature 'BFodds,BFodds'
e1 / e2
## S4 method for signature 'BFodds,BFBayesFactor'
e1 * e2
## S4 method for signature 'BFodds,index,missing,missing'
x[i, j, ..., drop = TRUE]
```

`e1` |
Numerator of the ratio |

`e2` |
Denominator of the ratio |

`x` |
BFodds object |

`i` |
indices indicating elements to extract |

`j` |
unused for BFodds objects |

`...` |
further arguments passed to related methods |

`drop` |
unused |

`BFodds`

objects can be inverted by taking the reciprocal and can
be divided by one another, provided both objects have the same denominator. In addition,
the `t`

(transpose) method can be used to invert odds objects.

The `BFodds`

class has the following slots defined:

- numerator
a list of models all inheriting

`BFmodel`

, each providing a single numerator- denominator
a single

`BFmodel`

object serving as the denominator for all model comparisons- logodds
a data frame containing information about the (log) prior odds between each numerator and the denominator

- bayesFactor
a

`BFBayesFactor`

object (possibly) containing the evidence from the data.- version
character string giving the version and revision number of the package that the model was created in

BayesFactor documentation built on Sept. 22, 2023, 1:06 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.