This page describes a toolbox for random-effect Bayesian model selection (RFX-BMS) at the group-level.

Here, models are treated as random effects that could differ between subjects, with an unknown population distribution (described in terms of model frequencies/proportions). This differs from a fixed-effect BMS, which assumes that the same model generated the data of all subjects. In brief, RFX-BMS essentially rests on inferring the frequency with which any model prevails in the population.

The toolbox also handles:

For additional details regarding RFX-BMS, please visit this wiki page.


RFX-BMS is part of a larger toolbox dealing with computational models of behavioural and neurobiological data (VBA).

It requires at least MATLAB 7.1 to run.

You can download the VBA toolbox here.


When using the toolbox, please cite the following papers:

Bayesian model selection for group studies - revisited. 

L. Rigoux, K. E. Stephan, K. J. Friston,  J. Daunizeau

Neuroimage (2014), 84: 971-985 [PubMed]

VBA: a probabilistic treatment of nonlinear models for neurobiological and behavioural data

J. Daunizeau, V. Adam, L. Rigoux

PLoS Comput Biol (2014), 10(1): e1003441 [Pubmed]