File: newPriorOdds.R

package info (click to toggle)
r-cran-bayesfactor 0.9.12-4.7%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,492 kB
  • sloc: cpp: 1,555; sh: 16; makefile: 7
file content (20 lines) | stat: -rw-r--r-- 745 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#'Create prior odds from a Bayes factor object
#'
#'Create a prior odds object from a Bayes factor object
#'
#'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.
#'
#'@param bf A BFBayesFactor object, eg, from an analysis
#'@param type The type of prior odds to create (by default "equal"; see details)
#'@return A (prior) BFodds object, which can then be multiplied by the
#'BFBayesFactor object to obtain posterior odds.
#'@author Richard D. Morey (\email{richarddmorey@@gmail.com})
#'@keywords misc
#'@export
newPriorOdds = function(bf, type = "equal"){
  BFodds(bf)
}