BF2pp {pCalibrate}R Documentation

Transform Bayes factors to posterior probabilities

Description

Transforms the Bayes factor for a hypothesis H_1 against a hypothesis H_2 to the posterior probability of H_1 given the prior probability of H_1 (assuming that the prior probabilities of H_1 and H_2 add up to 1).

Usage

BF2pp(BF, prior.prob=0.5)

Arguments

BF

a vector of Bayes factors

prior.prob

a vector of prior probabilities for H_1. Defaults to a vector with entries 0.5.

Value

A numeric vector of posterior probabilities of the hypothesis H_1

Examples

BF2pp(BF=c(2, 10, 50), prior.prob=c(0.2, 0.5, 0.9))

[Package pCalibrate version 0.2-1 Index]