Introduction

In the classical twin model, phenotypic variance is decomposed into genetic and environmental variance components, which are usually assumed to be homoskedastic, i.e., constant across relevant environmental or genetic conditions. Heteroskedasticity will arise if the genetic and/or environmental variance components vary in size as a function of a given variable, or moderator. Such a moderator can be truly environmental in nature (e.g., exposure to radiation from a nuclear plant, the level of iodine in soil or drinking waterFootnote 1), or be a trait that itself is subject to genetic influences (e.g., eating or exercise habits, educational attainment level, personality traits). If moderators have a limited number of levels, their effects can be modelled in a multi-group design. However, a multi-group approach does not naturally account for group order, and quickly becomes impractical if the moderator is characterized by many levels (i.e., continuous in the extreme case). As few as, say, 3 or 4 levels may already require a challenging number of groups, especially if the moderator differs within twin pairs (i.e., is not ‘shared’), and the sample includes additional family members (e.g., parents, siblings, partners). In such circumstances, behavioural geneticists often turn to the moderation models proposed by Purcell (2002). The popularity of these model is evident given its frequent use in twin studies on moderation in the context of, for instance, cognitive ability (Bartels et al. 2009; Grant et al. 2010; Harden et al. 2007; Johnson et al. 2009a; Turkheimer et al. 2003; van der Sluis et al. 2008), personality (Bartels and Boomsma 2009; Brendgen et al. 2009; Distel et al. 2010; Hicks et al. 2009a, b; Johnson et al. 2009b; Tuvblad et al. 2006; Zhang et al. 2009), health (Johnson and Krueger 2005; Johnson et al. 2010; McCaffery et al. 2008, 2009), and brain morphology (Lenroot et al. 2009; Wallace et al. 2006).

In both the univariate and the bivariate moderation models proposed by Purcell (2002), the moderation effects are modelled directly on the path loadings of the genetic (A), shared environmental (C) and nonshared environmental (E) variance components.Footnote 2 In this moderation model, the variances of A, C, and E are fixed to 1 (standard identifying scaling), but the path coefficients are modelled as (a + β a M i ), (c + β c M i ), and (e + β e M i ), respectively. In these expressions for the moderated loadings, a, c and e are intercepts, i.e., the parts of the variance components that are independent of moderator M, M i is the value of the moderator for a specific twin i, and β a , β c , and β e , are the regression weights of the moderator for the genetic and the environmental variance components, respectively.Footnote 3 In the standard homoskedastic ACE-model, the β coefficients are assumed to be zero. In the moderation model proposed by Purcell, the total variance of trait T is thus calculated as:

$$ {\text{Var}}\left( {{\text{T}}|{\text{M}}_{\text{i}} } \right) = \left( {a + \beta_{a} M_{i} } \right)^{ 2} + \left( {c + \beta_{c} M_{i} } \right)^{ 2} + \left( {e + \beta_{e} M_{i} } \right)^{ 2} $$
(1)

for i = 1, 2, and the expected covariances within MZ and DZ twin pairs are:

$$ \begin{aligned} {\text{Cov}}_{\text{MZ}} ({\text{T}}_{ 1} ,{\text{T}}_{ 2} |{\text{M}}_{ 1} ,{\text{M}}_{ 2} ) & = (a + \beta_{a} M_{1} )(a + \beta_{a} M_{2} ) + (c + \beta_{c} M_{1} )(c + \beta_{c} M_{2} ) \\ {\text{Cov}}_{\text{DZ}} ({\text{T}}_{ 1} ,{\text{T}}_{ 2} |{\text{ M}}_{ 1} ,{\text{M}}_{ 2} ) & = . 5(a + \beta_{a} M_{1} )(a + \beta_{a} M_{2} ) + (c + \beta_{c} M_{1} )(c + \beta_{c} M_{2} ). \\ \end{aligned} $$
(2)

Besides moderating the variance decomposition of trait T, the moderator itself may be correlated with the trait T via A, C, and/or E. The full bivariate moderation model (depicted in Fig. 1a), in which the variances of both trait T and moderator M, as well as their covariance, are decomposed into the three sources of variation (A, C, and E), allows one to test both the presence of moderation on the variance components unique to trait T, and the presence of moderation effects on the variance components common to trait T and moderator M, i.e., on the cross paths. Investigation of moderation of the covariance between the M and T, such as modeled via the 3 cross paths, is of interest if one wishes to understand the nature of, or the process underlying, the relation between M and T. With 17 parameters (15 describing the variance part of the model: 3 parameters unique to the moderator, 6 to describe the covariance between T and M, and 6 to describe the variance decomposition unique to T; and 2 parameters describing the means part of the model: the estimated means of M and T, respectively), this bivariate moderation model describes the relations between T and M in great detail. In practice, describing (decomposing) a small covariance between M and T with as much as 6 parameters, can be computationally challenging, and solutions can be quite sensitive to starting values. Also, Rathouz et al. (2008) have shown that this model sometimes produces spurious moderation effects. More practically, programs like Mx (Neale et al. 2006) do not allow the simultaneous modeling of categorical and continuous variables, which complicates this bivariate parameterization of T and M if the two variables do not have the same measurement level.Footnote 4 Finally, when the moderator of interest is a family-level variable, i.e., a variable that is by definition equal for twin 1 and twin 2, such as socioeconomic status in childhood (SES) or parental educational attainment level, then a bivariate parameterization is infeasible as the moderator does not show any variation within families.

Fig. 1
figure 1

a Full bivariate moderation model for a twin pair as proposed by Purcell (2002). Ac, Cc, and Ec are the variance components common to the moderator M and the trait T; Au, Cu, and Eu are the variance components unique to T. All latent variables have unit variance. Path loadings for M are denoted by am, cm, and em. The loadings of the cross-paths connecting M to T consist of parts that are unrelated to moderator M, i.e., ac, cc, and ec, and parts that depend on M via weights β ac , β cc , and β ec . Similarly, the loadings of the paths unique to T consist of parts that are unrelated to M, i.e., au, cu, and eu, and parts that depend on M via weights β a , β c , and β e . b Univariate moderation model for a twin pair as proposed by Purcell (2002). All latent variables have unit variance. Path loadings for T consist of parts that are unrelated to moderator M, i.e., a, c, and e, and parts that depend on M via weights β a , β c , and β e . M is also included in the means model of T, where β 0 denotes the intercept and β 1 the regression weight of T on M

For these reasons, researchers have resorted to what we call Purcell’s (2002) univariate moderation model (e.g., Bartels et al. 2009; Bartels and Boomsma 2009; Dick et al. 2009; Distel et al. 2010; Grant et al. 2010; Harden et al. 2007; McCaffery et al. 2008, 2009; Taylor et al. 2010; Timberlake et al. 2006; Turkheimer et al. 2003; Wallace et al. 2006). In this model, the moderator M is included in the means model of T as follows:

$$ \begin{aligned} T_{1}\,=\,\beta_{0} + \beta_{1} *M_{1} , \\ T_{2} = & \beta_{0} + \beta_{1} *M_{2} , \\ \end{aligned} $$
(3)

where T 1 and T 2 are the trait values of twins 1 and 2, M 1 and M 2 are their individual moderator values, β 0 is the intercept, and β 1 is the regression weight for moderator M. The parameters β 0 and β 1 are assumed to be equal across twins within a pair, and across zygosity (Fig. 1b). With 8 parameters (6 to describe the variance part of the model: 3 related, and 3 unrelated to the moderator; and 2 parameters to describe the means model: the regression weight β 1 and the intercept β 0), this parameterization is more parsimonious than the bivariate moderation model, and often less susceptible to computational problems. In addition, low correlations between M and T, or different measurement levels of M and T, do not cause problems in this univariate moderation model.

It is important to realize that the bivariate moderation model considers the joint distribution of M and T, while the univariate moderation model considers moderation of the variance decomposition of T conditional on M. With M included in the means model of T, the univariate moderation model does not allow further investigation of the nature of the covariance between M and T but specifically focuses on the question whether the decomposition of the variance unique to T depends on M. Entering M in the means model of T to allow for a main effect is believed to effectively remove from the covariance model any (genetic) effects that are shared between trait and moderator (Purcell 2002, p. 563). In essence, the variance common to M and T is partialled out, and the moderator effects of M are modeled on the residual variance of T, T′, i.e., the variance of T that was not shared with M. As a result, the effects that M has on the variance decomposition of the residual T′ are believed to be independent of (i.e., not due to) any (unmodeled) (genetic) correlation between M and T (Purcell 2002, p. 563).

However, although M1 is indeed unrelated to the for-M1-corrected residual \( {\text{T}}_{1}^{\prime } \), this residual \( {\text{T}}_{1}^{\prime } \) is not necessarily uncorrelated to the moderator M2 of the co-twin. In this paper, we first show that non-zero semi-partial correlations between \( {\text{T}}_{1}^{\prime } \) and M2 can result in a considerable increase in false positive moderation effects on variance components A and C, especially if the correlation between T and M runs fully (or predominantly) via E (rather than via A and/or C). We subsequently study whether a simple extension of the univariate moderation model prevents this increase of false positive rate. In the first part of this paper, we focus on illustrations and simulations in which the correlation between trait T and moderator M runs either exclusively via A, or via C or via E. Although these settings may be considered quite special, they conveniently simplify the explanation of the problem of non-zero semi-partial correlations in the univariate moderation model proposed by Purcell, and clarify how this model would need to be extended. In the subsequent investigation of the usefulness of this extended version of the univariate model, the simulations are extended to more realistic conditions.

Semi-partial correlations

Consider a moderator M and a trait T, both with variance 1 and mean 0, and measured in a sample of MZ and DZ twins. Suppose that in both M and T, variance components A, C, and E account for 40%, 30%, and 30% of the variance, respectively, and that these percentages are stable across the entire population (i.e., there is no moderation). This implies that rMZt1,t2 = rMZm1,m2 = .7 and rDZt1,t2 = rDZm1,m2 = .5. Now suppose that the cross-trait correlation between T and M equals .24 (i.e., rm1,t1 = rm2,t2 = .24) and that the T–M correlation is either exclusively due to A (loading cross-path equals \( \sqrt {.15} \)), or to C (loading cross-path equals \( \sqrt {.2} \)), or to E (loading cross-path equals \( \sqrt {.2} \); see Fig. 2a–c).

Fig. 2
figure 2

ac Bivariate models in which the correlation of ~.24 between moderator M and trait T either exclusively runs via A (a), exclusively via C (b), or exclusively via E (c). The variance of both trait T and moderator M are for 40% due to A, for 30% to C, and for 30% due to E. All latent variables have unit variance

If the relation between T and M runs exclusively via E, then in both MZ and DZ twins, the cross-trait cross-twin correlation between M2 (the moderator of twin 2) and T1 (the trait of twin 1) is 0, just as the correlation between M1 and T2 is 0, i.e., rm2,t1 = rm1,t2 = 0. If the correlation between T and M runs via C, then the correlation between M2 and T1, and between M1 and T2, is in both MZ and DZ twins calculated as \( \sqrt {.3*.2} = .24 \). Finally, if the correlation between T and M runs via A, then this correlation is \( \sqrt {.4*.15} = .24 \) in MZ twins and \( \sqrt {.4} *.5*\sqrt {.15} = .12 \) in DZ twins.

Now suppose that we want to investigate whether M moderates the variance decomposition of T, and rather than modeling this in a bivariate model (Fig. 1a), we choose to include M in the means model of T (Fig. 1b), such that we can study the moderation effects of M on the variance decomposition of the residual variance T′. We thus regress T1 on M1 and T2 on M2, and obtain residuals \( {\text{T}}_{1}^{\prime } \) and \( {\text{T}}_{2}^{\prime } \). We know that \( {\text{T}}_{1}^{\prime } \) and M1 (and \( {\text{T}}_{2}^{\prime } \) and M2) will be uncorrelated, but what is the correlation between the residual \( {\text{T}}_{1}^{\prime } \) and M2 (or between \( {\text{T}}_{2}^{\prime } \) and M1)? The semi-partial correlation between \( {\text{T}}_{1}^{\prime } \) and M2 (which equals the semi-partial correlation between \( {\text{T}}_{2}^{\prime } \) and M1), denoted as rm2(t1·m1), is calculated asFootnote 5:

$$ r_{m2(t1 \cdot m1)} = \frac{{r_{t1,m2} - r_{t1,m1} r_{m1,m2} }}{{\sqrt {1 - r_{t1,m1}^{2} } }}. $$
(4)

Table 1 shows the correlations between T1 and M2, and the semi-partial correlations between \( {\text{T}}_{1}^{\prime } \) and M2 for MZ and DZ twins in the three different scenarios (i.e., within-twin correlation between T and M runs either exclusively via A, exclusively via C, or exclusively via E).

Table 1 Correlations and semi-partial correlations between M2 and T1 if the within-twin correlation between T and M runs via A, via C, or via E

Clearly, as a result of partialling out M1 from T1, the semi-partial correlation between \( {\text{T}}_{1}^{\prime } \) and M2 is lower than the correlation between T1 and M2. However, the semi-partial correlation between \( {\text{T}}_{1}^{\prime } \) and M2 is often not equal to zero: especially if the correlation between T1 and M2 was zero to begin with (i.e., if T and M are correlated via E), the semi-partial correlation between \( {\text{T}}_{1}^{\prime } \) and M2 is quite large and negative. Estimated across an entire study sample (while weighing for the MZ/DZ ratio), these non-zero semi-partial correlations can be quite considerable (e.g., in the case that T and M are correlated via E), and are likely to cause problems in the univariate moderation model. After all, these non-zero semi-partial correlations, whether positive or negative, will somehow need to be accommodated in the model. Considering the univariate moderation model as depicted in Fig. 1b, a non-zero semi-partial correlation between \( {\text{T}}_{1}^{\prime } \) and M2 is most likely to be accommodated via the effects that M has on the variance components A and C, i.e., via β a and β c , as these are the only links between M2 and \( {\text{T}}_{1}^{\prime } \), and M1 and \( {\text{T}}_{2}^{\prime } \), respectively. In Simulation study 1, we investigated first whether these non-zero semi-partial correlations do indeed cause problems in the univariate moderation model. We expect problems to be greatest if the semi-partial correlation deviates more from zero (i.e., in the case that T and M are correlated via E). Second, we investigated whether these problems indeed manifest themselves mostly through β a and β c .

Simulation study 1

To investigate the effect of partialling out M on T within each individual twin on the significance of parameters β a , β c , and β e , we simulated data according to the models shown in Figs. 2a–c, i.e., with correlations between T and M running either exclusively via A, exclusively via C, or exclusively via E. In these simulated data, T and M were both standard normally distributed. Also, T and M were correlated, but moderation effects of M on the cross paths and on the variance components of the residual of T were absent. For each scenario, we simulated 2000 datasets each comprising Nmz = Ndz = 500 pairs. We then fitted to these datasets the standard univariate moderation model with moderator M modeled on the means (Fig. 1b), and then constrained either β a , β c , or β e to zero to test for the significance of each parameter individually, i.e., a 1-df test. The difference between the −2 log-likelihood of the full model (the specific moderation parameter estimated freely) and the −2 log-likelihood of the restricted model (the specific moderation parameter fixed to 0), denoted as χ 2diff , is χ2-distributed. Since moderation parameters β a , β c , and β e were zero in these simulated data, we expect the distribution of the χ 2diff as calculated across all 2000 data sets to follow a central χ2(1) distribution. Given an nominal α of .05, we expected 5% of χ 2diff test to be significant, i.e., larger than the critical value of 3.84.

Figure 3 shows PP-plots for the simulations in which T and M are correlated via A (upper part), via C (middle part) or via E (lower part). In these plots, the p-values observed in the simulations are plotted against the nominal p-values. The observed p-value for each χ 2diff -value observed in the 2000 simulations, is calculated as the proportion of the remaining 1999 χ 2diff -values that is equal to or larger than this specific χ 2diff -value. The nominal p-value for each χ 2diff -value observed in the 2000 simulations, is obtained by reference to the χ2(1)-distribution. Deviations from the 45° line show whether the use of the regular χ2(1) test would result in conservative (above the line) or liberal (below the line) decision. The figures also show the percentage of hits calculated across the 2000 simulations. Given α = .05, the percentage of hits is expected to be close to 5%. Note that the standard error of the ML estimator of the p-value in the simulations is calculated as sqrt(p * (1 − p)/N), where p denotes the percentage of significant tests observed in the simulations (nominal p-value) given a chosen α, and N the total number of simulations. The 95% confidence interval for a correct nominal p-value of .05 (given α = .05) and N = 2000 thus corresponds to CI-95 = (p − 1.96 * SE, p + 1.96 * SE), and thus equals .04–.06. This implies that, given α = .05, any observed nominal p-value outside the .04–.06 range should be considered incorrect: p-values <.04 suggest that the model is too conservative, while p-values >.06 suggest that the model is too liberal.

Fig. 3
figure 3

PP-plots for the univariate moderation model in Simulation study 1, in which T and M are correlated exclusively via A (upper part), exclusively via C (middle part), or exclusively via E (lower part). Deviations from the 45° line show whether the use of the regular χ2(1) test would result in conservative (above the line) or liberal (below the line) decision. % hits denotes the percentage of likelihood-ratio tests smaller than the critical value 3.84 (i.e., significant given α = .05). A hit rate of .05 is expected given α = .05, and given that moderation effects were absent in the data. Hit rates outside the .04–.06 range should be considered incorrect (i.e., significantly too low or too high)

The results of Simulation study 1 as depicted in Fig. 3 are summarized in Table 2, which also includes results for some additional simulations settings. In testing β a under these three scenarios, the number of false positives (i.e., χ 2diff tests >3.84) was inflated if the correlation between T and M ran via A or C: 6.85 and 7.60%, rather than 5%, respectively. If the correlation between T and M ran via E, however, the false positive rate was even more seriously inflated: 53.23%. This inflation is clearly visible in Fig. 3 (PP-plot lower left corner). Similar results were obtained for the tests of β c : if the correlation between T and M ran via A or C, the false positive rate was 6.85 and 8.75%, respectively, while the false positive rate was 55.33% if the correlation between T and M ran via E. In testing for the significance of β e , the false positive rate was only significantly elevated if the correlation between T and M ran via E (7.50%), but not if the correlation ran via A or C (4.57 and 5.26%, respectively). The additional simulations summarized in Table 2 show that the false positive rate of the univariate moderation model is a) correct if M1 and M2 are unrelated, i.e., when the variance in M is completely due to nonshared environmental influences E, b) slightly too low if M1 and M2 are correlated 1, i.e., when the variance in M is completely due to shared environmental influences C, and c) correct if the covariance between M and T runs in equal proportions via A, C and E. This latter result shows that the extent to which the false positive rate of the univariate moderation model is elevated depends on the specific mix of, or ratio in which, A, C and E contribute to the covariance between M and T since the positive and negative semi-partial correlations as described in Table 1 can more or less cancel each other out.

Table 2 Results Simulation study 1: false positive rates under Purcell’s univariate moderation model

Summarizing, Simulation study 1 shows that under the univariate moderation model, in which T1 is corrected for M1 only, and T2 is corrected for M2 only, the false positive rate can be (much) higher than the nominal α-level, especially if the correlation between T and M runs predominantly via E.

Solution: extension of the univariate moderation model?

In this section we aim to investigate whether we can solve the problems that can result from non-zero semi-partial correlations by extending the univariate moderation model. An obvious solution is to extend the means model such that the trait value of twin 1 is not only corrected for the moderator value of twin 1, but also for any residual association to the moderator value of the co-twin, as this would result in a residual \( T_{1}^{\prime \prime } \) (\( T_{2}^{\prime \prime } \)) that is uncorrelated to both M1 and M2. Taking into account the way regression coefficients in a multiple regression model with two predictors are calculated, it is easy to show that the parameters in the means models should generally also differ across zygosity.

Consider the regression of T1 on both M1 and M2:

$$ {\text{T}}_{ 1} = \beta_{0} + \beta_{ 1} *{\text{M}}_{ 1} + \beta_{2} * {\text{M}}_{ 2} $$
(5)

where β 0 denotes the intercept, and β 1 and β 2 denote the regression weight of M1 and M2, respectively. Regression weight β 1 is a measure of the relationship between T1 and M1 while controlling for M2, and is in the completely standardized case calculated as

$$ \beta_{1} = \frac{{r_{t1,m1} - r_{t1,m2} r_{m1,m2} }}{{1 - r_{m1,m2}^{2} }}. $$
(6)

Similarly, regression weight β 2 is a measure of the relationship between T1 and M2 while controlling for M1, and is calculated as

$$ \beta_{2} = \frac{{r_{t1,m2} - r_{t1,m1} r_{m1,m2} }}{{1 - r_{m1,m2}^{2} }}. $$
(7)

Note that β 2 = zero, if M1 and M2 are uncorrelated, because then rm1,m2 = rt1,m2 = 0, in which case this extension equals the general univariate model. Note also the similarity between Eqs. 6 and 7 and Eq. 4: the calculation of the regression weights in multiple regression with two predictors resembles the calculation of semi-partial correlations, except for the square root in the denominator. From Eqs. 6 and 7, it can be seen that β 1 and β 2 will only be equal across zygosity groups if both rt2,m1 (= rt1,m2) and rm1,m2 are equal across zygosity, i.e., if neither M and the relation between M and T are affected by genetic factors. In all other situations, β 1 and β 2, and as a result β 0, should be estimated separately in MZ and DZ twins, allowing their values to differ across zygosity. Allowing all three betas in the means model to differ across zygosity will result in a general extended univariate moderation model, the specification of which is independent of the nature of the correlations between M and T and M1 and M2. This extension implies that β 0, β 1 and β 2 need to be different across MZ and DZ groups, so that the means models for MZ and DZ twins 1 and 2 become:

$$ \begin{aligned} {\text{MZ:}}\quad {\text{T}}_{ 1} & = \beta_{{0,{\text{mz}}}} + \beta_{{1,{\text{mz}}}} *{\text{M}}_{ 1} + \beta_{{1,{\text{mz}}}} *{\text{M}}_{ 2} , \\ {\text{T}}_{ 2} & = \beta_{{0,{\text{mz}}}} + \beta_{{1,{\text{mz}}}} *{\text{M}}_{ 2} + \beta_{{2,{\text{mz}}}} *{\text{M}}_{ 1} , \\ \end{aligned} $$
(8)
$$ \begin{aligned} {\text{DZ:}}\quad {\text{T}}_{ 1} & = \beta_{{0,{\text{dz}}}} + \beta_{{ 1 , {\text{dz}}}} *{\text{M}}_{ 1} + \beta_{{2,{\text{dz}}}} *{\text{M}}_{ 2} , \\ {\text{T}}_{ 2} & = \beta_{{0,{\text{dz}}}} + \beta_{{1,{\text{dz}}}} *{\text{M}}_{ 2} + \beta_{{2,{\text{dz}}}} *{\text{M}}_{ 1} . \\ \end{aligned} $$
(9)

With 12 parameters (6 to describe the variance part of the model: 3 related, and 3 unrelated to the moderator; and 6 parameters to describe the means models: 3 for MZ twins, and 3 for DZ twins), this extended univariate moderation model is still more parsimonious than the bivariate moderation model (17 parameters of which 15 concern the variance decomposition). We conducted Simulation study 2 to investigate whether the false positive rate of this extended univariate moderation model is correct, and comparable to the false positive rate of the full bivariate moderation model.

Simulation study 2

To investigate whether the extended univariate moderation model results in the correct false positive rate of 5%, we re-analyzed the data-sets created under Simulation study 1 using the extended univariate moderator model. Again we tested the significance of moderator parameters β a , β c and β e . As these parameters were simulated to be zero, we expected the χ 2diff to be χ(1) distributed across the 2000 datasets, independent of whether T and M were correlated via A, via C, or via E. In addition, these same data sets were analyzed using the full bivariate moderation model (as depicted in Fig. 1a) in which all 17 parameters were estimated freely (Note that we did not use the full bivariate moderation model to analyze the data with rM1,M2 = 1 or rM1,M2 = 0 because in practice one would never choose a bivariate parameterization under these circumstances).

The results for both the extended univariate moderation model and the full bivariate moderation model are described in Table 3, and depicted as PP-plots in Fig. 4 for the extended univariate moderation model. The false positive rate of the extended univariate moderator model is in most cases not significantly different from 5%, and where it is (when variance in M is completely due to C, and thus rM1,M2 = 1), it is too low, i.e. the test is too conservative. In contrast, the false positive rate of the full bivariate model is always too low, and significantly lower than the false positive rate of the extended univariate model, when testing β a or β c , irrespective of the nature of the correlation between M and T. Apparently, slight misfit in the full bivariate moderation model resulting from dropping one parameter can quite easily be accommodated by adjustment of the remaining parameters, resulting in a too low false positive rate. In addition, it is important to realize that the variance components unique to trait T under the bivariate model (Au, Cu and Eu in Fig. 1a) are not the same as the variance components of the residual T″ in the extended univariate parameterization. In Appendix 1, we show how the residual T″ is calculated when M and T are correlated via A, or C, or E. The fact that the variance decomposition of T″ is not the same under the bivariate and the univariate moderation model implies that either model can constitute a more or less erroneous approximation, depending on the real data generating process, which is generally unknown.

Table 3 Results Simulation study 2: false positive rates under the extended univariate moderation model and the full bivariate moderation model when the covariance between T and M is not moderated
Fig. 4
figure 4

PP-plots for the extended univariate moderation model in Simulation study 2, in which T and M are correlated exclusively via A (upper part), exclusively via C (middle part), or exclusively via E (lower part). Deviations from the 45° line show whether the use of the regular χ2(1) test would result in conservative (above the line) or liberal (below the line) decision. % hits denotes the percentage of likelihood-ratio tests smaller than the critical value 3.84 (i.e., significant given α = .05). A hit rate of .05 is expected given α = .05, and given that moderation effects were absent in the data. Hit rates outside the .04–.06 range should be considered incorrect (i.e., significantly too low or too high)

Summarizing the results of Simulation study 2, we conclude that the extension of the univariate moderation model avoids the inflated false positive scores that were observed for the standard univariate moderation model, while the full bivariate moderation model actually proved too conservative. However, Simulation studies 1 and 2 concerned scenarios in which the covariance between M and T was itself not subject to moderation, i.e., β ac , β cc , and β ec on the cross paths between M and T in Fig. 1a were fixed to 0. That is, the covariance between M and T did not dependent on the level of M. In practice, however, it is possible that the covariance between M and T fluctuates as a function of M. Simulation study 3 was conducted to investigate the false positive rate of the extended univariate and the full bivariate moderation models in the context of data in which the covariance between M and T is moderated. These simulations are of specific interest since moderator-dependent variation in the strength of the covariance between M and T is not well accommodated by the estimated regression parameters β 0,MZ , β 1,MZ , β 2,MZ , β 0,DZ , β 1,DZ , and β 2,DZ in Eqs. 8 and 9, and problems are therefore to be expected for the extended univariate moderation model.

Simulation study 3

We again simulated data for standard normally distributed moderator M and trait T in 500 MZ and 500 DZ twin pairs. Suppose again that A, C, and E account for 40%, 30%, and 30%, respectively, of the variance in M. The parts of the cross paths between M and T that do not depend on M (a c , c c , and e c in Fig. 1a) are all set to .05, and A, C, and E unique to T (a u , c u , and e u in Fig. 1a) are set to .35, .25 and .25, respectively. That is, if moderation is fully absent, the correlation between M and T equals .39, while genetic and (common) environmental effects explain 40%, 30% and 30% of the variance in T, respectively. We now introduce moderation on the cross paths by setting either β ac , β cc , or β ec to .10. Moderation on the unique parts of T is, however, absent (i.e., β a , β c , and β e in Fig. 1a are set to 0). For each of these settings we simulated 2000 data sets. Note that we deliberately choose the moderation parameters on the cross paths to be quite substantial: if the false positive rate of the extended univariate model is affected by moderation of the cross paths, then we are sure to pick it up. If the false positive rate of the extended univariate model is not affected by moderation of the cross paths, then the size of this moderation should not matter.

We then fitted to these datasets a) the full bivariate moderation model including all 17 parameters, and b) the extended univariate moderation model in which both moderators M1 and M2 are modeled on the means with means parameters differing across zygosity (Eqs. 8 and 9). Within these models we constrained either β a , β c , or β e to zero to test for the significance of each parameter individually, i.e., a 1-df test. Since moderation parameters β a , β c , and β e were simulated as 0 in these data, we expect the distribution of the χ 2diff as calculated across all 2000 data sets to follow a central χ2(1) distribution. Given an nominal α of .05, we expected 5% of χ 2diff test to be significant, i.e., larger than the critical value of 3.84.

The results of these simulations are summarized in Table 4. When moderation on the cross paths is absent (Baseline: β ac  = β cc  = β ec  = 0), the false positive rate of the extended univariate model is correct, while the false positive rate of the full bivariate model is deflated for β au and β cu . The false positive rate of the full bivariate model, however, remains largely unchanged when moderation on the cross paths is introduced. In contrast, the false positive rate of the extended univariate model becomes considerably inflated, especially for β a and β c . Clearly, when the covariance between M and T is not stable across levels of M, the sample-wise regression coefficients β 0,MZ , β 1,MZ , β 2,MZ , β 0,DZ , β 1,DZ , and β 2,DZ in Eqs. 8 and 9 do not sufficiently accommodate the varying association between M and T. As a result, the remaining moderation, which is actually located on the cross paths, is now picked up in the extended univariate moderation model as if it were located on the unique paths of T. Additional simulations (not shown), in which either β ac , β cc or β ec equaled .10 while the other two cross path moderation parameters equaled .05, showed even higher hit rates for the extended univariate model (up to 65%), while the hit rate of the full bivariate moderation model remained .05 or lower.

Table 4 Results Simulation study 3: false positive rates under the extended univariate moderation model and the full bivariate moderation model when the covariance between T and M is moderated

In summary, the results of Simulation study 3 show that the extended univariate moderation model can be used as a moderation detection method, but is not very suited to establish the exact location of the moderation as it cannot distinguish moderation on cross paths from moderation on the unique paths of T.

False negatives

We have shown that the false positive rate (i.e., type I error rate) is correct under the extended univariate moderation model, but only if the covariance between M and T is free of moderation by M. We now address the false negative rate, i.e., the type II error, of the extended univariate moderation model compared to the full bivariate model. In a fourth and fifth simulation study, we investigate whether the false negative rate of the extended univariate moderation model is comparable to the false negative rate of the bivariate moderation model when the covariance between M and T is not subject to moderation (Simulation study 4) or when this covariance is subject to moderation as well (Simulation study 5).

Simulation study 4

Data were simulated as described in Simulation study 1, with moderation on the cross paths being absent. We now, however, introduced moderation on the paths unique to T, with moderation parameters being either β a  = .08, or β c  = .10, or β e  = .035 (As shown in Table 5, the power to detect moderation on E variance is much greater than the power to detect moderation of A or C variance, which is why β e was chosen much smaller than both β a and β c ). Note that the effect size of the chosen moderation parameters depends on the nature of the correlation between T and M. For example, β a was set at .08. If the correlation ran via C or E, then the genetic variance of trait T was calculated as (\( \sqrt {.4} \) + .08 * M)2. If the correlation between T and M ran via A, however, then the genetic variance of T was calculated as .15 + (\( \sqrt {.25} \) + .08 * M)2, where .15 is associated with the cross-path relating T and M.

Table 5 Results Simulation study 4: false negative rates under the extended univariate moderation model and the full bivariate moderation model when the covariance between T and M is not moderated

For each of these 9 settings (rt,m runs via A, C or E, and moderation is present on either A, C, or E) we simulated 2000 datasets and analyzed these using either the full bivariate moderation model (estimating moderation parameters on the cross paths as well as on the paths unique to T) or the extended univariate moderation model (estimating moderation on the variance components of the residual T″). We then tested whether the moderation parameter of interest (either β a , or β c , or β e ) was significant given α = .05.

The results of these simulations are presented in Table 5. In 5 out of 9 scenarios, the power of the extended univariate moderation model was significantly higher than the power of the full bivariate moderation model. Note that we can indeed speak of higher power because we know from the results of Simulation study 2 that the false positive rate of neither models is inflated. The lower power of the full bivariate moderation model is probably due to the variance being decomposed into as many as 15 parameters, compared to the 6 of the extended univariate moderation model: misfit resulting from fixing one of the moderation parameters to zero can more easily be absorbed by the remaining 14 parameters.

Simulation study 5

Data were simulated as described in Simulation study 3 with covariance between M and T running via A, C and E, and moderation on the cross paths was introduced by setting either β ac , β cc , or β ec to .10 (see Table 6 for description of the scenarios). Moderation on the unique parts of T was now simulated to be present as well, with moderation parameters being either β a  = .08, or β c  = .10, or β e  = .035 (as in Simulation study 4). For each scenario, we simulated 2000 datasets and analyzed these using both the full bivariate moderation model (estimating moderation parameters on the cross paths as well as on the paths unique to T) and the extended univariate moderation model (estimating moderation on the variance components of the residual T″). We then tested whether the moderation parameter of interest (either β a , or β c , or β e ) was significant given α = .05.

Table 6 Results Simulation study 5: false negative rates under the extended univariate moderation model and the full bivariate moderation model when the covariance between T and M is moderated

The results of these simulations are presented in Table 6. In all scenarios, the extended univariate moderation model picks up moderation more often than the full bivariate moderation model. However, these results can, except for the Baseline model, not be interpreted as the extended univariate moderation model having more power than the full bivariate moderation model. Given the results of Simulation study 3, which showed that the extended moderation model picks up the moderation on the cross paths as if it is moderation on the unique paths, we conclude that the power of the extended univariate moderation model is too high, or at least that the location of the moderation that is detected, is uncertain. That is, β a , β c , and β e are biased in the extended univariate moderation model because the moderation on the cross paths (β ac , β cc , and β ec ) is not adequately accommodated by the regression coefficients in the means part of the model.

Discussion

In this paper, we showed that the univariate moderation model proposed by Purcell (2002) produces (highly) inflated false positive rates if the moderator M is correlated between twins, and M and T are correlated as well. We investigated an extension of this model as a solution to this problem, and conclude that the extended univariate moderation model works well, but only if moderation on the covariance between M and T is absent. Moderation of the covariance between M and T is, however, not accommodated adequately in the extended univariate moderation model, and as a result, moderation of the covariance is picked up as moderation on the variance components unique to T. In the absence of moderation of the covariance between M and T, the extended univariate moderation model is actually more powerful than the full bivariate moderation model, but in the presence of moderation of the covariance between M and T, the extended univariate moderation model detects moderation of the variance components unique to T, as such misspecifying the actual location of the moderation.

Fortunately, most published papers in which the univariate moderation model was used concern moderation effects of family-level moderators such as SES, parental educational attainment level, or the age of the twins, i.e., variables that are by definition equal in both twins. As we have shown, non-zero semi-partial correlations are not a problem in that case and the false positive rate is rather too low than too high (i.e., the model is slightly conservative). In a few published papers, however, moderators were studied that did show variation between twins (e.g., McCaffery et al. 2008, 2009; Timberlake et al. 2006: moderators under study were educational attainment level of the twins, exercise level of the twins, and the twins’ self-reported religiosity, respectively). Whether the moderation effects reported in these papers are genuine or spurious (i.e., the result of non-zero semi-partial cross-trait cross-twin correlations) depends, as we have shown, on the nature of the correlation between T and M, on the nature of the correlation between M1 and M2, and on the absence or presence of moderation of the covariance between M and T. Re-analysis of these data using the full bivariate moderation model, or the extended univariate moderation model if the presence of moderation of the covariance has been excluded, is advised. Overall, we conclude that researchers should use the full bivariate moderation model to study the presence of moderation on the covariance between M and T. If such moderation can be ruled out, subsequent use of the extended univariate moderation model is recommended as this model is more powerful than the full bivariate moderation model.