This function provides a way of testing whether theoretical constraints on
certain effects hold for all subjects. The backend is provided by the
generalTestBF function from the
BayesFactor-package. The input formula is the
full model to be tested. It usually contains an interaction term between
the subject ID and the effect for which constraints are tested (e.g.
ID:condition). The ID variable is to be specified in ID and is
usually a random factor to be specified in whichRandom.
Order constraints on effects should be specified in whichConstraint,
as a named character vector. Each constraint in the vector can take 2 levels
of the effect. They are of the form:
"effect name" = "condition A" < "condition B". In order to impute more
than 2 levels, the same effect name has to be entered with different conditions
as the value. For instance, for testing whether conditions A < B < C, the
input should be: "effect name" = "condition A" < "condition B", "effect name" = "condition B" < "condition C".
At this point, constraints can only be tested for the same effect.
Priors have to be specified for all factors in whichConstraint,
for ID, and for the interaction between the two. A Detailed description
of the models, priors and methods is given in the documentation of
anovaBF and more extensively in Rouder et al. (2012).