Implementation of the marginal model posterior.