Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

newPriorOdds

Create prior odds from a Bayes factor object


Description

Create a prior odds object from a Bayes factor object

Usage

newPriorOdds(bf, type = "equal")

Arguments

bf

A BFBayesFactor object, eg, from an analysis

type

The type of prior odds to create (by default "equal"; see details)

Details

This function takes a Bayes factor object and, using its structure and specified type of prior odds, will create a prior odds object.

For now, the only type is "equal", which assigns equal prior odds to all models.

Value

A (prior) BFodds object, which can then be multiplied by the BFBayesFactor object to obtain posterior odds.

Author(s)

Richard D. Morey (richarddmorey@gmail.com)


BayesFactor

Computation of Bayes Factors for Common Designs

v0.9.12-4.2
GPL-2
Authors
Richard D. Morey [aut, cre, cph], Jeffrey N. Rouder [aut], Tahira Jamil [ctb, cph], Simon Urbanek [ctb, cph], Karl Forner [ctb, cph], Alexander Ly [ctb, cph]
Initial release
2018-05-09

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.