ranGCA
and diallel
are random-effect structures designed to represent the effet of symmetric interactions between pairs of individuals (order of individuals in the pair does not matter), while antisym
represents anti-symmetric interactions (the effect of reciprocal ordered pairs on the outcome are opposite, as in the so-called Bradley-Terry models). These random-effect structures all account for multiple membership, i.e., the fact that the same individual may act as the first or the second individual among different pairs, or even within one pair if this makes sense).
More formally, the outcome of an interaction between a pair \(i,j\) of agents is subject to a symmetric overall random effect \(v_{ij}\) when the effect “on” individual \(i\) (or viewed from the perspective of individual \(i\)) equals the effect on \(j\): \(v_{ij}=v_{ji}\). This may result from the additive effect of individual random effects \(v_{i}\) and \(v_{j}\): \(v_{ij}=v_i+v_j\), but also from non-additive effects \(v_{ij}=v_i+v_j+a_{ij}\) if the interaction term \(a_{ij}\) is itself symmetric (\(a_{ij}=a_{ji}\)). ranGCA
and diallel
effects represent such symmetric effects, additive or non-additive respectively, in a model formula (see Details for the semantic origin of these names and how they can be changed). Conversely, antisymmetry is characterized by \(v_{ij}=v_i-v_j=-v_{ji}\) and is represented by the antisym
formula term.
If individual-level random effects of the form (1|ID1)+ (1|ID2) were included in the model formula instead of ranGCA(1|ID1+ID2)
for symmetric additive interactions, this would result in different variances being fitted for each random effect (breaking the assumption of symmetry), and the value of the random effect would differ for an individual whether it appears as a level of the first random effect or of the second (which is also inconsistent with the idea that the random effect represents a property of the individual).
When ranGCA
or antisym
random effects are fitted, the individual effects are inferred. By contrast, when a diallel
random effect is fitted, an autocorrelated random effect \(v_{ij}\) is inferred for each unordered pair (no individual effect is inferred), with correlation \(\rho\) between levels for pairs sharing one individual. This correlation parameter is fitted and is constrained by \(\rho < 0.5\) (see Details). ranGCA
is equivalent to the case \(\rho= 0.5\). diallel
fits can be slow for large data if the correlation matrix is large, as this matrix can have a fair proportion of nonzero elements.
There may also be identifiability issues for variance parameters: in a LMM as shown in the examples, there will be three parameters for the random variation (phi
, lambda
and rho
) but only two can be estimated if only one observation is made for each dyad.