calc_bf: Compute a Bayes factor

Description Usage Arguments Value

View source: R/utils.R

Description

Compute a Bayes factor

Usage

1
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


BayesianPower documentation built on July 1, 2020, 6:02 p.m.