SCM

Forum: help

Monitor Forum | Start New Thread Start New Thread
RE: Extracting _Just_ Bayes Factor [ Reply ]
By: Richard Morey on 2015-04-27 13:59
[forum:42202]
You can use as.vector(), extractBF(), or as.data.frame() to extract the Bayes factor. The BayesFactor package stores the BF as a logarithm for numerical stability.

Extracting _Just_ Bayes Factor [ Reply ]
By: John Clevenger on 2015-03-30 16:35
[forum:42195]
Hi. I'm hoping to run some simulations and, as such, need to accumulate Bayes Factors for lots of simulated experiments. However, I'm not sure how to get _just_ this information from the result of a ttestBF. If I run:

bf = ttestBF(group_01, group_02)

..the result is a nice summary of the test:

Bayes factor analysis
--------------
[1] Alt., r=0.707 : 0.7470219 ±0%

Against denominator:
Null, mu1-mu2 = 0
---
Bayes factor type: BFindepSample, JZS


I want to save just the BF and discard the rest of the information, but I can't figure out how to do this. Exploring the bf data structure, it looks like the Bayes Factor should be stored in:

bf@bayesFactor$bf

...but this returns a value that I can't quite map onto the returned Bayes Factor (here it equals -0.2916607). Is this indeed the BF but it's transformed somehow for the output? Is there a way to just grab the end result (e.g., 0.7470219 above)?

Thanks!
John

Thanks to:
Vienna University of Economics and Business Powered By FusionForge