- 1Faculty of Psychology, Beijing Normal University, Beijing, China
- 2Shenzhen Bao’an Institute of Education Sciences, Shenzhen, China
- 3School of Psychology, Zhejiang Normal University, Jinhua, China
The random moderation model (RMM) was developed based on a two-level regression model to cope with heteroscedasticity in moderation analysis, and normal-distributed-based maximum likelihood (NML) estimation was developed to estimate the RMM. To present an alternative to the NML, this article discusses the effectiveness of Bayesian estimation for the RMM, aiming to explore a more practical method using the popular software Mplus. Through a simulation study, the RMM based on Bayesian estimation was investigated and compared to maximum likelihood (ML) estimations, including the NML and the default ML estimation in Mplus. The results indicated that the Bayesian approach outperformed the two ML estimations. It showed (a) higher accuracy for estimation of the effect size of the moderation effect; (b) higher 95% credibility interval coverage of the true value of the moderation effect; and (c) well-controlled and more stable type I error rates, while powers comparable to the ML estimations were provided.
Introduction
A moderator is defined as a variable Z that affects the direction or strength of the relationship between independent variable X and dependent variable Y (e.g., MacKinnon, 2008; Hayes, 2013). The moderation effect is traditionally evaluated by including product term XZ in the regression model of Y on X, which is called the moderated multiple regression model (MMRM) (e.g., Aiken and West, 1991). According to the estimate results of the MMRM, if the regression coefficient of XZ is statistically significant in terms of the p-value of the F- or t-tests, the moderation effect is approved (e.g., Laird and Ware, 1982; Demidenko, 2004). This statistical significance test relies on the assumption of homoscedasticity across different values of Z or X (Aguinis et al., 1999; Maronna et al., 2006). A violation of this assumption possibly results in an inflated type I error rate, as well as an inflated type II error rate, which could further exacerbate the low power of the moderation test (Alexander and DeShon, 1994; Aguinis and Pierce, 1998). However, it is difficult for this assumption to be true in practice because it is vulnerable to being affected by longer-than-normal tails, outliers, or unidentical populations (Aguinis et al., 1999; Yuan et al., 2014). It is necessary to treat such samples as stemming from heterogeneous populations (Marcoulides and Trichera, 2019).
As an extension of the MMRM, Yuan et al. (2014) argued for a two-level regression model to conduct the moderation analysis, denoted as random moderation model (RMM) in this article. Depending on the two-level structure, the RMM can cope with the problem of heterogeneous residuals and answer the question of how much moderator variable Z explains the effect of X on Y. The RMM can be estimated using the normal-distribution-based maximum likelihood (NML), which can be conducted using a private R package, NML.R, developed by Yuan et al. (2014).1 The NML should have properties similar to the maximum likelihood (ML) because both of them approximate estimations based on integral calculations of the likelihood function (Le Cam, 1990; Millar, 2011). However, utilization of ML in the two-level context has been indicated to be more difficult because the dimensions of numerical integration can increase rapidly (Marsh et al., 2004; Asparouhov and Muthén, 2021). Therefore, further research is needed to discuss the efficiency of the NML in the application of the RMM in more detail.
The moderation effect in the RMM using the NML estimation is approved through a significance test for the fixed slope in the level-two model, which corresponds to the coefficient of XZ in the MMRM. As methodologists make a growing number of warnings about overreliance on the p-value (Bakan, 1966; American Statistical Association, 2016), alternative methods have become increasingly popular to avoid making inferences directly according to the significance test based on the null hypothesis. On one hand, various effect sizes, such as R-square, have been investigated to quantitatively report and interpret inferential results (Kelley and Preacher, 2012; Cumming, 2014) instead of simply categorizing the statistical results as Yes or No (e.g., Yuan and MacKinnon, 2009; Lee, 2016). On the other hand, Bayesian estimation provides a competitive alternative to traditional ML estimation because it can provide a more comprehensive interpretation of the results in terms of not only the statistical significance but also the probability that a given parameter is above a cut-off value or within a given interval (e.g., Yuan and MacKinnon, 2009; Lee, 2016). For example, the moderation effect in the Bayesian approach can be approved when the 95% credibility interval of the coefficient of XZ does not contain zero, which indicates that there is a 95% probability that the true value of the regression coefficient lies within the interval limits without zero. In addition, the Bayesian approach has the advantage of being flexible and feasible for use with various complex models, rendering it easily generalized in application. By contrast, NML estimation is less friendly to empirical researchers, as the private package NML.R is not officially certificated and, thus, a tutorial manual is not available. Further, application of NML estimation based on NML.R is limited because the given estimation process in the source code, such as the convergence criterion, is difficult to modify for different situations. Therefore, the present article aims to explore a more practical method for estimation of the RMM that can be implemented in much more common software—Mplus (Muthén and Muthén, 1998–2012). In this study, utilization of Bayesian estimation in RMM is investigated and compared to NML estimation using NML.R package (denoted as NML.R). In addition, given that NML.R is implemented through the private R package, to ensure the accuracy of the study results, we additionally used the default ML estimation with robust standard errors via Mplus (denoted as MLR.M).2 The NML.R is the ML estimation based on the normal distribution with conventional standard errors, which assumes the data are normal distributed (Yuan et al., 2014). By contrast, the MLR.M is the ML estimation with standard errors and a chi-square test statistic that are robust to non-normality and non-independence of observation. For normally distributed data, these two estimations would have the same estimation results theoretically.
MMRM and RMM
The typical MMRM of the regression of Y on X with moderator variable Z can be written as
where the product term XZ is also called the interaction term, and the moderation effect is quantified as the coefficient . and describe the magnitude of the main effects of X and Z on Y, respectively. The error term is assumed to be normally distributed with homogenous variance. Based on the MMRM, Yuan et al. (2014) allowed these regression coefficients to vary across individuals, where the variation can be partly explained by the moderator variable. The RMM corresponding to model (1) can be written as a two-level regression model,
where and vary as individuals. , , , and are constant coefficients in the level-two model. ,, and are assumed to be normally distributed as N(0,), N(0,), and N(0,), respectively, and is independent of (, ). Essentially, the RMM can be viewed as a special case of the multilevel model (Snijders and Bosker, 2011). According to Yuan et al. (2014), the RMM can be estimated using NML estimation, which is based on the normal distribution assumption.
To compare the RMM with the MMRM, replace and in Eq. 2a with Eqs 2b, 2c; then, the RMM can be written as
The residuals, consisting of , vary across different groups or individuals characterized by X. It should be noted that Eq. 1 is a special case of Eq. 3 when equals zero. The coefficients , , , and in Eq. 3 are equivalent to , , , and , respectively, in Eq. 1.
The RMM can answer the question of how much Z moderates the effect of X on Y. It can be assessed by effect size R-square, which is calculated as the percentage of the variation of random coefficient explained by Z,
where is the variance of the observed variable Z. In contrast to the RMM, the MMRM considers that the between-person variation of can be completely explained by the moderator variable Z, ignoring the possible random errors of the moderation effect that can cause heteroscedasticity. Therefore, the value of R-square defined in Eq. 4 would always be equal to 1 in the MMRM. This ignores violation of the assumption of homoscedasticity and normality and may reduce the accuracy of hypothesis testing in moderation effect estimation (Alexander and DeShon, 1994; Aguinis and Pierce, 1998).
The homoscedasticity assumption of the MMRM implies that the individuals are sampled from one population; hence, the random error is normally distributed with a constant variance. However, a review of the literature by Aguinis et al. (1999) found that around 50% of studies using MMRM violated this assumption. By contrast, in RMM, the variance of the random error can be varied across different individual observations; the error term, , describes the heterogeneous residuals, which vary across different individuals characterized by X. The variance of random error is ; hence, the heteroscedasticity increased non-linearly with X.
Bayesian parameter estimation
In Bayesian estimation, we combine beliefs about the parameters with evidence from an observed set of data to draw conclusions about unknown model parameters. A Bayesian model consists of two components: a prior distribution that specifies assumptions about the unknown parameters independent of the data, and a statistical model that defines the distribution of data—often a likelihood function. The Bayesian approach seeks the posterior distribution of the model parameter, which encompasses the complete topography of peaks, valleys, and plateaus, as opposed to the frequentist approach, which seeks a point estimate of each model parameter. The likelihood of the data given the parameters and the prior distribution of the parameters are multiplied to obtain the posterior distribution of parameters given the data. The posterior mean (or median, or mode) serves as a summary of central tendency, whereas the posterior standard deviation serves as a description of variability when describing the posterior distribution. Complex posterior distributions, however, may be exceedingly difficult to manage in practical computing. The posterior distribution of Bayesian models’ means and standard deviations may be estimated via MCMC simulations. A large sample of representative random values from a posterior distribution should be used in order to evaluate its attributes. A simulation known as a Monte Carlo process samples a large number of random variables from an interesting posterior distribution. For further information on the Bayesian MCMC approach, readers might see Kruschke (2015) and Levy and Mislevy (2016).
Bayesian estimation has been gaining in popularity (Kruschke, 2015; Van de Schoot et al., 2017), as it provides a flexible tool to fit various complex models, such as heterogeneous or nonnormal models (Rast et al., 2012; Oravecz and Muth, 2018), which are difficult or inefficient to estimate using regular ML estimation (e.g., Wang and McArdle, 2008; Chow et al., 2011; Song et al., 2011; Muthen and Asparouhov, 2012). For example, Zhang et al. (2013) derived robust growth curve models using Student’s t distribution and used the Bayesian approach to estimate the model. Rast et al. (2012) applied the Bayesian approach to the estimation of a mixed-effects location scale model (Hedeker et al., 2008, 2009), which allowed explanations of both between-person and within-person variations in a growth trajectory using explanatory variables in longitudinal analysis (e.g., Hoffman, 2007). Wang and Preacher (2015) indicated that their Bayesian approach yielded unbiased estimates and higher or comparable power to the ML estimation in moderated mediation analysis (e.g., Hayes, 2013; Hayes and Preacher, 2013).
More recently, the Bayesian approach was directly applied in the estimation of a two-level moderated mediation model (Liu et al., 2022), which was further developed based on the RMM to cope with situations where the strength of an indirect (mediation) effect depends on the moderator variable (e.g., Preacher et al., 2007). Liu et al. (2022) focused on the moderated mediation effect, while this study focuses on the moderation effect. In addition, the estimation of the Bayesian approach remains to be investigated because evidence is rare for the performance of Bayesian estimation in two-level models with an actual non-clustered data structure. In this study, Bayesian estimation for the RMM was explored to discuss the efficiency of different estimation methods. The Bayesian estimation was implemented using Mplus software under default settings in order to increase the practicality and operability of this approach. The code used for the estimation in Mplus is given in the appendix of this article for reference to interested empirical researchers.
Stimulation study
Data generation
A simulation study was conducted to explore the performance of the RMM based on Bayesian estimation via Mplus. Referring to previous simulations in relevant fields, four factors were manipulated at several representative levels interactively (e.g., Wang and Preacher, 2015; Liu et al., 2022), including (a) sample size, N = 100 and 500; (b) magnitude of the error variance, = 0, 0.50, and 1; (c) magnitude of the regression coefficients, = 0.29 and 0.59; and (d) correlation coefficient between X and Z, = 0 and 0.50.
The observed independent variable X and moderator variable Z were generated from the bivariate normal distribution N(,) with zero means and unit variances, and the correlation coefficients between the two variables are set as . The error term was simulated as the combination of three separate residual errors that were uncorrelated with each other and with X and Z. The and were extracted from standard normal distribution N(0,1), and was generated from normal distributions with consistent zero means and different values of variance . The regression coefficients , , , and were all fixed equal and set as , discussing the power for evaluation of the moderation effect. Then, based on the above 24 conditions, another 24 simulations that set as zero were correspondingly investigated, where the type I error rate of the moderation effect estimation was discussed. The dependent variable Y was generated according to Eq. 3. Finally, a total of 48 conditions were conducted, with 500 replications under each of these conditions.
Reparametrization of RMM
To estimate the RMM in Mplus with the essentially single-level data, a cluster variable has been added to the data set. This variable consisted of a sequence of numbers without repeated values, indicating that each group had only one individual, which was used to “trick” the software into thinking that the data have two levels (Liu et al., 2022). Considering that both represent homogenous residuals according to Eq. 3, the estimation of the combined error variance (denoted as ) is expected to perform better than the estimates of the two ( and ) separately (Yuan et al., 2014). Therefore, in Mplus, the RMM can be reparametrized as
where . And the corresponding path diagram is given in Figure 1. If estimating the RMM according to Eqs 2a–2c directly, an extra error term needs to be estimated under a redundant restriction that and are independent. This should reduce the estimation accuracy compared to Eqs 5a, 5b.
Analysis
In Mplus, default (noninformative) prior and convergence criterion were applied in the Bayesian estimation, which was denoted as Bs.M. The default priors were widely applicable to various models and data sets (Congdon, 2001). The default Gelman–Rubin convergence criterion determined convergence by assessing within- and between-chain variability for each parameter based on the potential scale reduction (PSR) factor (Gelman et al., 2003), and convergence was considered achieved if the PSR statistic was less than 1.05 (Brooks and Gelman, 1998).
For the Bs.M, three Markov chains were drawn for each estimation, and the replication would stop for each chain when the convergence criterion was reached or the given maximum of 10,000 replications was produced. The code used to specify the Bs.M was shown in Appendix A. In addition, the ML estimation was discussed for a comparative perspective, including the NML.R and the MLR.M. The code used to conduct the MLR.M was shown in Appendix B. For additional details of the implementation of NML.R package, please see Yuan et al. (2014).
We explored estimation of the above three methods for estimation of the moderation effect, in terms of the accuracy of regression coefficients and effect size R-square. The estimation accuracy was evaluated through average of |bias| and mean square error (MSE). Let α and denote the true and estimated values, respectively, of a parameter; then, the average of |bias| and MSE could be calculated by.
The coverage, the power of test, and type I error were further computed based on the 95% credibility interval for the Bs.M and the 95% confidence interval for two ML estimations (for simplicity, the 95% credibility interval and 95% confidence interval are both denoted as 95% CI). Specifically, the coverage was calculated as the proportion of the 95% CI of contained the true value of in 500 replications; The power of test was calculated as the proportion of 95% CI of did not contained zero in 500 replications when ; The type I error was calculated as the proportion of 95% CI of did not contained zero in 500 replications when .
Results
Estimation accuracy of coefficients
For the estimation of , , and , the three methods, Bs.M, MLR.M, and NML.R, had similar performance and very small MSEs that approached zero in most conditions (ranging from 0.000 to 0.003 when N = 500 and from 0.000 to 0.016 when N = 100). Tables 1 and 2 showed the accuracy of under the conditions that ≠ 0 and = 0, respectively. In addition, the accuracy of error variances were given in Appendix C for interested researchers (see Tables I–IV).
Results indicated that the accuracy of the estimations of the coefficients was hardly influenced by the magnitude of their true values, as the MSEs under the condition = 0.29 were similar to those under the condition = 0.59, whether the true value of was the same as the other coefficients (see Table 1) or was zero (see Table 2). The three methods performed better and more similarly to each other under a larger than a small sample size. As the true value of increased, the three methods showed decreases in accuracy. The influence from different true values of the correlation coefficient between X and Z was very small and could be ignored. In sum, the Bs.M, MLR.M, and NML.R showed little difference for the estimation of coefficient parameters according to MSEs, especially when the sample size was large.
However, the NML.R was prone to nonconvergent results. As NML.R package reported, the convergence rates of the NML.R under conditions with a small sample size (ranging from 57.2 to 97.6%) were lower than those under conditions with a large sample size (ranging from 90.6 to 100%). While the Bs.M had a few nonconvergent results only under the condition N = 100, the convergence rates of the Bs.M (ranging from 97.6 to 99.4% when N = 100) were much higher than those of the NML.R. Therefore, the present and subsequent results of the NML.R and Bs.M were calculated based on the convergent samples under the conditions with nonconvergent data sets. What’s more, it was found that the NML.R might provide a negative value for the estimation of in most cases (more than 60% in all conditons) over 500 replications. Those cases with a negative have also been removed from the summarized table of the NML.R. The MLR.M could achieve convergence under all the conditions.
Coverage, power of test, and type І error of the moderation effect
The powers and type І error rates in all the conditions were presented in Table 3. According to the power, the three methods performed much better when the sample size and true value of were larger (N = 500, = 0.59) than in the other conditions. The MLR.M and NML.R had very similar results in power, while the Bs.M showed slightly lower values under almost all the conditions and had no advantage over the MLR.M or NML.R. Nevertheless, the three methods showed little difference in terms of the criterion that good power should be larger than 0.80, except for 2 of 24 conditions (where N = 100, = 0.59, and = 1). Under a small sample size with = 0.29, all the three methods showed extremely poor powers.
For type І error, the Bs.M avoided error inflation effectively and performed best among the three methods. The Bs.M showed relatively stable type І error rates under different conditions. By contrast, when the sample size or true value of decreased, the type І error rates of the MLR.M and NML.R significantly increased and were even larger than 0.05. The correlation coefficient between X and Z had no significant influence on these results.
Table 4 showed the coverages of the moderation effect under the conditions ≠ 0. Under the condition = 0, the coverage was exactly 100% minus the type І errors, indicating that the coverage was larger when the type І error was smaller. In Table 4, the Bs.M showed higher coverage (ranging from 95.0% to 98.2%) than the MLR.M and NML.R (ranging from 91.9 to 97.4%) in almost all the conditions. The MLR.M and NML.R performed quite similarly to each other, except for conditions with a small sample size and = 0. Under these conditions, the MLR.M exhibited the lowest coverages of the three methods.
Estimation accuracy of R-square
Tables 5, 6 showed the accuracy of the estimated R-squares for the three methods under conditions ≠ 0 and = 0, respectively. All three methods performed better under the conditions in which = 0 (see Table 6) than under those in which ≠ 0 (see Table 5). Overall, the Bs.M performed best for the estimation of R-square among the three methods, except for the conditions where ≠ 0 and = 0. Under the condition = 0, the specified model was equivalent to a traditional MMRM, where the R-square is meaningless. All the three method had higher accuracy under the conditions with larger sample size. And as the increase of the true value of , the accuracy for the estimation of R-square was higher.
Discussion and conclusion
In this article, the Bayesian approach was investigated to estimate the RMM. We conducted the Bayesian estimation in Mplus and applied the default priors, which are far more common and practicable for empirical researchers. Through a simulation study, the Bayesian approach was compared with the NML.R estimation using the NML.R package, as well as the default ML estimation in Mplus. Overall, the Bayesian estimation investigated in this study shows stability in controlling the type I error and outperforms the ML estimations in terms of the accuracy of the effect size R-square, as well as the coverage and type I error of the moderation effect. The two ML estimations performed similarly to each other in most conditions except for estimation of the effect size R-square, where the NML.R showed extremely poor accuracy.
First, the Bayesian approach had more advantages than the MLR.M and NML.R due to the estimation of the moderation effect. Specifically, the Bayesian method showed higher coverages of the true value of the moderation effect than the other two methods. Moreover, the Bayesian approach had approximately equivalent powers to the MLR.M and NML.R for the estimation of the moderation effect, and its type І error rates were quite well controlled. By contrast, the MLR.M and NML.R had increasingly inflated type І error rates as the sample size and true value of decreased. These results confirmed that the ML estimation was more sensitive to sample size and the magnitude of the random effect of moderation than the Bayesian method. This is reasonable because ML estimation depends on large-sample approximation due to its asymptotic property (Le Cam, 1990; Millar, 2011; Yuan et al., 2014). It is well known that the Bayesian method is appealing for studies with small sample sizes (e.g., Gelman et al., 2003; Yuan and MacKinnon, 2009; Wang and Preacher, 2015). The present study also demonstrated that the Bayesian method was highly efficient even when the random error of the moderation effect was actually zero in the RMM. Nevertheless, if researchers specially pursue high power for estimation of the moderation effect, the two ML estimations remain the qualified methods and should have priority over the Bs.M.
Secondly, in addition to the moderation coefficient, R-square plays a crucial role in the RMM as an effect size to quantify the proportion of the given moderator accounting for the random effect in regression. Under the conditions where is nonzero, the Bayesian approach showed highest accuracy among the three methods, and the NML.R performed better than the MLR.M. While Under the conditions where is zero, the RMM is exactly equivalent to the MMRM, which assumes the random effect in regression can be completely explained by the moderator and, thus, R-square is meaningless. It is worth noting that the NML.R package probably provide a negative value for the estimation of error variance , which would seriously hamper the estimation of the R-square.
Thirdly, both the MLR.M and NML.R showed high accuracy for estimation of the regression coefficients, which was consistent with the Bayesian approach. Further, in most conditions, the two ML estimations performed quite similarly to each other in terms of the power, type I error, and coverage for estimation of the moderation effect. However, the NML.R had poor convergence rates, and provided negative value for the estimation of in most cases. Asparouhov and Muthén (2021) found that ML estimation had a convergence problem for the estimation of the two-level model with latent interactions. The authors considered the reason to be an increase in the numerical integration dimensions in the two-level model possibly exceeding what is computationally feasible (Marsh et al., 2004; Asparouhov and Muthén, 2021). However, the MLR.M is this study converged normally in all conditions. The present study differed from that of Asparouhov and Muthén (2021) in that the model investigated in their study is latent-centered and involves real two-level analysis, where the between-level effect is meaningful. In the current study, one reason for the convergence problem of the NML.R might be that the convergence criterion used in NML.R package is strict, in which convergence is considered to be achieved when the maximum update value of all parameters is less than 0.0001 before 300 iterations.
Limitations
The RMM contributes to moderation analysis with heterogenous residuals, which should violate the assumption of normality and homogeneity of error variance. This study provides a practical and efficient method for estimation of the RMM, making the RMM and its estimation much easier to be implemented. Based on the posterior distribution of the Bayesian estimation, researchers are also allowed to make inferences beyond statistical significance. Nevertheless, this study has limitations. First, only default noninformative priors in the Bayesian estimation were investigated in order to increase the generality of the findings. Alternatively, further research can be conducted to discuss the influence of different prior information, such as different hyper-parameters in the prior distribution (e.g., Lee, 2007), on the estimation.
Second, the study was conducted under the assumption of normality in RMM. There is limited evidence showing how the Bayesian estimation would perform when the normal assumption is violated. Therefore, a further study should be conducted to evaluate Bayesian estimation under the condition that normality is violated and compare it with robust ML estimation.
Third, the performances of the estimation methods are discussed mainly from the perspective of the estimation of moderation effect and effect size. The estimation accuracy with the random effects are also presented in the appendix of this paper. Nevertheless, in applications, researchers may also be concerned with the capability of the estimation method in evaluating the goodness of model fit and selecting between models. This remains to be explored.
Fourth, only the continuous moderator was considered in this study, and theoretically, the RMM is also applicable to the categorical moderator (e.g., Dahlke and Sackett, 2018). Bayesian estimation and ML estimation can be further compared in the context of moderation analysis with the categorical moderator.
Fifth, as in all simulations, data generation in this study could not vary all possible factors. Only the most concerned population parameters were manipulated at several common levels. However, the findings should be representative of what is most common in practice. For further concerns, more complex models, such as those containing several independent variables with multiple interactions or moderated mediation effects, and even a clustered data structure with meaningful between-level effects, could be developed to meet the needs of data analysis in complicated situations.
Data availability statement
The original contributions presented in the study are included in the article/Supplementary material, further inquiries can be directed to the corresponding author.
Author contributions
DW contributed to the conception, design, and analysis of data as well as paper drafting and revising of the manuscript. PZ contributed to the critically revising of the manuscript. All authors contributed to the article and approved the submitted version.
Conflict of interest
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Publisher’s note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
Supplementary material
The Supplementary material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fpsyg.2023.1048842/full#supplementary-material
Footnotes
1. ^The R package of NML.R can be downloaded at http://www3.nd.edu/~kyuan/moderation/NML.R.
2. ^Noting that, in Mplus, there are three types of ML estimations for TYPE = TWOLEVEL RANDOM option, including ML, MLR, and MLF (maximum likelihood parameter estimates with standard errors approximated by first-order derivatives and a conventional chi-square test statistic). The MLR was used by default and denoted as the MLR.M in this study. In this study, consistent results were found for the MLR and the other two ML estimations (i.e., ML and MLF), because the simulated data were normally distributed and fully compliant with the model assumptions.
References
Aguinis, H., Petersen, S. A., and Pierce, C. A. (1999). Appraisal of the homogeneity of error variance assumption and alternatives for multiple regression for estimating moderated effects of categorical variables. Organ. Res. Methods 2, 315–339. doi: 10.1177/109442819924001
Aguinis, H., and Pierce, C. A. (1998). Heterogeneity of error variance and the assessment of moderating effects of categorical variables: a conceptual review. Organ. Res. Methods 1, 296–314. doi: 10.1177/109442819813002
Aiken, L. S., and West, S. G. (1991). Multiple regression: testing and interpreting interactions. Thousand Oaks, CA: Sage.
Alexander, R. A., and DeShon, R. P. (1994). Effect of error variance heterogeneity on the power of tests for regression slope differences. Psychol. Bull. 115, 308–314. doi: 10.1037/0033-2909.115.2.308
American Statistical Association . (2016). American Statistical Association releases statement on statistical significance and P-values: Provides principles to improve the conduct and interpretation of quantitative science. Available at: https://www.amstat.org/asa/files/pdfs/P-ValueStatement.pdf.
Asparouhov, T., and Muthén, B. (2021). Bayesian estimation of single and multilevel models with latent variable interactions. Struct. Equ. Model. Multidiscip. J. 28, 314–328. doi: 10.1080/10705511.2020.1761808
Bakan, D. (1966). The test of significance in psychological research. Psychol. Bull. 66, 423–437. doi: 10.1037/h0020412
Brooks, S. P., and Gelman, A. (1998). General methods for monitoring convergence of iterative simulations. J. Comput. Graph. Stat. 7, 434–455.
Chow, S. M., Tang, N., Yuan, Y., Song, X., and Zhu, H. (2011). Bayesian estimation of semiparametric dynamic latent variable models using the dirichlet process prior. Br. J. Math. Stat. Psychol. 64, 69–106. doi: 10.1348/000711010X497262
Cumming, G. (2014). The new statistics: why and how. Psychol. Sci. 25, 7–29. doi: 10.1177/0956797613504966
Dahlke, J. A., and Sackett, P. R. (2018). Refinements to effect sizes for tests of categorical moderation and differential prediction. Organ. Res. Methods 21, 226–234. doi: 10.1177/1094428117736591
Gelman, A., Carlin, J. B., Stern, H. S., and Rubin, D. B. (2003). Bayesian data analysis (2nd ed.). Boca Raton, FL: CRC Press.
Hayes, A. F. (2013). An introduction to mediation, moderation, and conditional process analysis: a regression-based approach. New York, NY: Guilford.
Hayes, A. F., and Preacher, K. J. (2013). “Conditional process modeling: using structural equation modeling to examine contingent causal processes” in Structural equation modeling: a second course. eds. G. R. Hancock and R. O. Mueller (Information Age: Greenwich, CT)
Hedeker, D., Mermelstein, R. J., Berbaum, M. L., and Campbell, R. T. (2009). Modeling mood variation associated with smoking: an application of a heterogeneous mixed-effects model for analysis of ecological momentary assessment (EMA) data. Addiction 104, 297–307. doi: 10.1111/j.1360-0443.2008.02435.x
Hedeker, D., Mermelstein, R., and Demirtas, H. (2008). An application of a mixed-effects location scale model for analysis of momentary assessment (EMA) data. Biometrics 64, 627–634. doi: 10.1111/j.1541-0420.2007.00924.x
Hoffman, L. (2007). Multilevel models for examining individual differences in within-person variation and covariation over time. Multivar. Behav. Res. 42, 609–629. doi: 10.1080/00273170701710072
Kelley, K., and Preacher, K. J. (2012). On effect size. Psychol. Methods 17, 137–152. doi: 10.1037/a0028086
Kruschke, J. K. (2015). Doing Bayesian data analysis, second edition: a tutorial with R, JAGS, and Stan. Elsevier: Academic Press.
Laird, N., and Ware, J. (1982). A random-effects model for longitudinal data. Biometrics 38, 963–974. doi: 10.2307/2529876
Lee, S.-Y. (2007). Structural equation models with dichotomous variables, in structural equation modeling: A Bayesian approach. Chichester: John Wiley & Sons Ltd.
Lee, D. K. (2016). Alternatives to P value: confidence interval and effect size. Korean J. Anesthesiol. 69, 555–562. doi: 10.4097/kjae.2016.69.6.555
Levy, R., and Mislevy, R. J. (2016). Bayesian psychometric modeling. Boca Raton, FL: Chapman and Hall/CRC.
Liu, H., Yuan, K. H., and Wen, Z. (2022). Two-level moderated mediation models with single-level data and new measures of effect sizes. Behav. Res. Methods 54, 574–596. doi: 10.3758/s13428-021-01578-6
MacKinnon, D. P. (2008). Introduction to statistical mediation analysis. Mahwah, NJ: Taylor & Francis Group.
Marcoulides, K., and Trichera, L. (2019). Detecting unobserved heterogeneity in latent growth curve models. Struct. Equ. Model. Multidiscip. J. 26, 390–401. doi: 10.1080/10705511.2018.1534591
Maronna, R. A., Martin, D., and Yohai, V. (2006). Robust statistics: theory and methods. New York: John Wiley & Son
Marsh, H. W., Wen, Z., and Hau, K. (2004). Structural equation models of latent interactions: evaluation of alternative estimation strategies and indicator construction. Psychol. Methods 9, 275–300. doi: 10.1037/1082-989X.9.3.275
Muthen, B., and Asparouhov, T. (2012). Bayesian SEM: a more flexible representation of substantive theory. Psychol. Methods 17, 313–335. doi: 10.1037/a0026802
Muthén, L. K., and Muthén, B. O. (1998–2012) Mplus user’s guide (7th ed.). Los Angeles, CA: Muthén & Muthén.
Oravecz, Z., and Muth, C. (2018). Fitting growth curve models in the Bayesian framework. Psychon. Bull. Rev. 25, 235–255. doi: 10.3758/s13423-017-1281-0
Preacher, K. J., Rucker, D. D., and Hayes, A. F. (2007). Addressing moderated mediation hypotheses: theory, methods, and prescriptions. Multivar. Behav. Res. 42, 185–227. doi: 10.1080/00273170701341316
Rast, P., Hofer, S. M., and Sparks, C. (2012). Modeling individual differences in within-person variation of negative and positive affect in a mixed effects location scale model using BUGS/JAGS. Multivar. Behav. Res. 47, 177–200. doi: 10.1080/00273171.2012.658328
Snijders, T. A., and Bosker, R. J. (2011). Multilevel analysis: An introduction to basic and advanced multilevel modeling. Thousand Oaks, CA: Sage Publications.
Song, X. Y., Lu, Z. H., Hser, Y. I., and Lee, S. Y. (2011). A Bayesian approach for analyzing longitudinal structural equation models. Struct. Equ. Model. 18, 183–194. doi: 10.1080/10705511.2011.557331
Van de Schoot, R., Winter, S. D., Ryan, O., Zondervan-Zwijnenburg, M., and Depaoli, S. (2017). A systematic review of Bayesian articles in psychology: the last 25 years. Psychol. Methods 22, 217–239. doi: 10.1037/met0000100
Wang, L., and McArdle, J. J. (2008). A simulation study comparison of Bayesian estimation with conventional methods for estimating unknown change points. Struct. Equ. Model. 15, 52–74. doi: 10.1080/10705510701758265
Wang, L., and Preacher, K. J. (2015). Moderated mediation analysis using Bayesian methods. Struct. Equ. Model. Multidiscip. J. 22, 249–263. doi: 10.1080/10705511.2014.935256
Yuan, K.-H., Cheng, Y., and Maxwell, S. (2014). Moderation analysis using a two-level regression model. Psychometrika 79, 701–732. doi: 10.1007/s11336-013-9357-x
Yuan, Y., and MacKinnon, D. P. (2009). Bayesian mediation analysis. Psychol. Methods 14, 301–322. doi: 10.1037/a0016972
Keywords: random moderation model, heteroscedasticity, Bayesian estimation, moderation analysis, two-level regression model
Citation: Wei D and Zhan P (2023) Bayesian estimation for the random moderation model: effect size, coverage, power of test, and type І error. Front. Psychol. 14:1048842. doi: 10.3389/fpsyg.2023.1048842
Edited by:
Pietro Cipresso, University of Turin, ItalyReviewed by:
Matthew Valente, University of South Florida, United StatesTirza Routtenberg, Ben-Gurion University of the Negev, Israel
Copyright © 2023 Wei and Zhan. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Peida Zhan, pdzhan@gmail.com