calc_bf {BayesianPower} | R Documentation |
Compute a Bayes factor
calc_bf(data, h1, h2, scale, nsamp = 1000)
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 |
BF12, that is, the evidence for H1 relative to H2