Extracting BFs from anovaBF or any Formal class BFBayesFactor object
I am using BayesFactor to run an ANOVA:
model<- anovaBF(dif ~ cond * exp, data=df)
The output appears in the console, but if I want to save it as an object, then the object class for this object is a "Formal class BFBayesFactor". What I need is to extract only the BF10 for a given line, so that I could save this as a row in a new dataframe (this is because I want to run the model on 1000 simulated data sets and see how many of them show an effect of a given size...).
I can get one of the slots of the Formal class object by using @ (e.g. model@bayesFactor). However, the values in the bayesFactor slot do not correspond to the values printed in the console.
How do I get access to the values that are printed in the console?
Thanks in advance,