calc_bf {BayesianPower}R Documentation

Compute a Bayes factor

Description

Compute a Bayes factor

Usage

calc_bf(data, h1, h2, comp, 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.

comp

A vector with the complexity of H1 and H2

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.1.6 Index]