Logo Utrecht University

Informative Hypotheses

Complexity (R-package)

With the R-package complexity, the proportion of the parameter space in line with an informative hypothesis by chance can be calculated.

This proportion can, for example, be used in the calculation of the Bayes factor for an informative hypothesis versus the unconstrained alternative as described in Klugkist, Laudy, and Hoijtink (2005).

complexity is published on CRAN and can be installed in R by running the following code:


The associated paper that explains the complexity function and its use is:

  • Zondervan-Zwijnenburg, M. A. J., Van de Schoot, R., Johnson, A. R. (2013). Computing complexity for the Bayes Factor in inequality constrained hypotheses[File](open access)

The package can be cited with:


Reference used in description:

  • Klugkist, I., Laudy, O. and Hoijtink, H. (2005). Inequality constrained analysis of variance: A Bayesian approach. Psychological Methods, 10, 477-493. doi: 10.1037/1082-989X.10.4.477