calc_bf {BayesianPower} | R Documentation |
Compute a Bayes factor
calc_bf(data, h1, h2, comp, 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. |
comp |
A vector with the complexity of H1 and H2 |
nsamp |
A number. The number of prior or posterior samples to determine the |
BF12, that is, the evidence for H1 relative to H2