calc_bf {BayesianPower}R Documentation

Compute a Bayes factor

Description

Compute a Bayes factor

Usage

calc_bf(data, h1, h2, scale, nsamp = 1000)

Arguments

data

A matrix. The dataset for which the BF must be computed

h1

A constraint matrix defining H1.

h2

A constraint matrix defining H2.

scale

A number specifying the prior scale.

nsamp

A number. The number of prior or posterior samples to determine the

Value

BF12, that is, the evidence for H1 relative to H2


[Package BayesianPower version 0.2.3 Index]