Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Random slopes in lmBF

Hi all,
Can I add random slopes to the lmBF function?
Currently I'm using the following to test a model with 2 main effects.
lmBF(RT ~ IV1 + IV2 + Subject, whichRandom="Subject",data = RTData)
I want to add the slopes of one or both IVs as a random factor. Is there such a possibility?

Thanks,
Alon

Comments

  • update: a good soul in "R Users Psychology" facebook group helped me out. The answer is:
    lmBF(RT ~ IV1 + IV2 + Subject + IV1:Subject, whichRandom=c('Subject','IV1:Subject),data = RTData)

  • That's great to hear -- I must admit I personally have used the BayesFactor package mostly indirectly, through JASP. Thanks for posting the solution.
    Cheers,
    E.J.

Sign In or Register to comment.