extractBF | R Documentation |

Extract the Bayes factor from an object

```
extractBF(x, logbf = FALSE, onlybf = FALSE)
## S4 method for signature 'BFBayesFactor'
extractBF(x, logbf = FALSE, onlybf = FALSE)
```

`x` |
object from which to extract the Bayes factors |

`logbf` |
return the logarithm of the Bayes factors |

`onlybf` |
return a vector of only the Bayes factors |

Returns an object containing Bayes factors extracted from the object

```
## Sample from the posteriors for two models
data(puzzles)
bf = lmBF(RT ~ shape*color + ID, data = puzzles, whichRandom="ID", progress=FALSE)
extractBF(bf)
```

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.