population_bf {multinomineq}R Documentation

Aggregation of Individual Bayes Factors

Description

Aggregation of multiple individual (N=1) Bayes factors to obtain the evidence for a hypothesis in a population of persons.

Usage

population_bf(bfs)

Arguments

bfs

a vector with individual Bayes factors, a matrix with one type of Bayes-factor comparison per column, or a list of matrices with a named column "bf" (as returned by bf_multinom/count_to_bf).

Value

a vector or matrix with named elements/columns:

References

Klaassen, F., Zedelius, C. M., Veling, H., Aarts, H., & Hoijtink, H. (in press). All for one or some for all? Evaluating informative hypotheses using multiple N = 1 studies. Behavior Research Methods. https://doi.org/10.3758/s13428-017-0992-5

Examples

# consistent evidence across persons:
bfs <- c(2.3, 1.8, 3.3, 2.8, 4.0, 1.9, 2.5)
population_bf(bfs)

# (A) heterogeneous, inconsistent evidence
# (B) heterogeneous, inconsistent evidence
bfs <- cbind(
  A = c(2.3, 1.8, 3.3, 2.8, 4.0, 1.9, 2.5),
  B = c(10.3, .7, 3.3, .8, 14.0, .9, 1.5)
)
population_bf(bfs)


[Package multinomineq version 0.2.6 Index]