Abstract
A social network comprises both actors and the social connections among them. Such connections reflect the dependence among social actors, which is essential for individuals’ mental health and social development. In this article, we propose a mediation model with a social network as a mediator to investigate the potential mediation role of a social network. In the model, the dependence among actors is accounted for by a few mutually orthogonal latent dimensions which form a social space. The individuals’ positions in such a latent social space are directly involved in the mediation process between an independent and dependent variable. After showing that all the latent dimensions are equivalent in terms of their relationship to the social network and the meaning of each dimension is arbitrary, we propose to measure the whole mediation effect of a network. Although individuals’ positions in the latent space are not unique, we rigorously articulate that the proposed network mediation effect is still well defined. We use a Bayesian estimation method to estimate the model and evaluate its performance through an extensive simulation study under representative conditions. The usefulness of the network mediation model is demonstrated through an application to a college friendship network.
Similar content being viewed by others
Notes
The total effect is purely the sum of the indirect effect and direct effect. It may not be the same as if regressing Y on X directly because the model complexity changes and the information used in estimating the model is also different.
The density of a social network is defined as the proportion of ties over all possible ties.
References
Airoldi, E. M., Blei, D. M., Fienberg, S. E., & Xing, E. P. (2008). Mixed membership stochastic blockmodels. Journal of Machine Learning Research, 9(Sep), 1981–2014.
Anderson, C. J., Wasserman, S., & Crouch, B. (1999). A p* primer: Logit models for social networks. Social Networks, 21(1), 37–66. https://doi.org/10.1016/S0378-8733(98)00012-4.
Anderson, C. J., Wasserman, S., & Faust, K. (1992). Building stochastic blockmodels. Social Networks, 14(1–2), 137–161. https://doi.org/10.1016/0378-8733(92)90017-2.
Asendorpf, J. B., & Wilpers, S. (1998). Personality effects on social relationships. Journal of Personality and Social Psychology, 74(6), 1531–1544. https://doi.org/10.1037/0022-3514.74.6.1531.
Baron, R. M., & Kenny, D. A. (1986). The moderator–mediator variable distinction in social psychological research: Conceptual, strategic, and statistical considerations. Journal of Personality and Social Psychology, 51(6), 1173–1182. https://doi.org/10.1037/0022-3514.51.6.1173.
Broman, C. L. (1993). Social relationships and health-related behavior. Journal of Behavioral Medicine, 16(4), 335–350. https://doi.org/10.1007/BF00844776.
Cacioppo, J. T., & Cacioppo, S. (2014). Social relationships and health: The toxic effects of perceived social isolation. Social and Personality Psychology Compass, 8(2), 58–72. https://doi.org/10.1111/spc3.12087.
Carrington, P. J., Scott, J., & Wasserman, S. (2005). Models and methods in social network analysis (Vol. 28). Cambridge: Cambridge University Press.
Cattell, R. B. (1952). Factor analysis: An introduction and manual for the psychologist and social scientist. New York: Harper.
Cheng, Y., & Liu, H. (2016). A short note on the maximal point-biserial correlation under non-normality. British Journal of Mathematical and Statistical Psychology, 69(3), 344–351. https://doi.org/10.1111/bmsp.12075.
Cheong, J., MacKinnon, D. P., & Khoo, S. T. (2003). Investigation of mediational processes using parallel process latent growth curve modeling. Structural Equation Modeling, 10(2), 238–262. https://doi.org/10.1207/S15328007SEM1002_5.
Choi, D. S., Wolfe, P. J., & Airoldi, E. M. (2012). Stochastic blockmodels with a growing number of classes. Biometrika, 99(2), 273–284. https://doi.org/10.1093/biomet/asr053.
Clifton, A., & Webster, G. D. (2017). An introduction to social network analysis for personality and social psychologists. Social Psychological and Personality Science, 8(4), 442–453. https://doi.org/10.1177/1948550617709114.
Cole, D. A., & Maxwell, S. E. (2003). Testing mediational models with longitudinal data: Questions and tips in the use of structural equation modeling. Journal of Abnormal Psychology, 112(4), 558–577. https://doi.org/10.1037/0021-843X.112.4.558.
Daniel, R. M., De Stavola, B. L., Cousens, S., & Vansteelandt, S. (2015). Causal mediation analysis with multiple mediators. Biometrics, 71(1), 1–14. https://doi.org/10.1111/biom.12248.
Depaoli, S., Winter, S. D., Lai, K., & Guerra-Peña, K. (2019). Implementing continuous non-normal skewed distributions in latent growth mixture modeling: An assessment of specification errors and class enumeration. Multivariate Behavioral Research, 54(6), 795–821. https://doi.org/10.1080/00273171.2019.1593813.
Enders, C. K., Fairchild, A. J., & MacKinnon, D. P. (2013). A Bayesian approach for estimating mediation effects with missing data. Multivariate Behavioral Research, 48(3), 340–369. https://doi.org/10.1080/00273171.2013.784862.
Epskamp, S., Rhemtulla, M., & Borsboom, D. (2017). Generalized network pschometrics: Combining network and latent variable models. Psychometrika, 82(4), 904–927. https://doi.org/10.1007/s11336-017-9557-x.
Flashman, J. (2012). Academic achievement and its impact on friend dynamics. Sociology of Education, 85(1), 61–80. https://doi.org/10.1177/0038040711417014.
Fritz, M. S., & MacKinnon, D. P. (2007). Required sample size to detect the mediated effect. Psychological Science, 18(3), 233–239. https://doi.org/10.1111/j.1467-9280.2007.01882.x.
Fuhrer, R., & Stansfeld, S. A. (2002). How gender affects patterns of social relations and their impact on health: A comparison of one or multiple sources of support from “close persons”. Social Science and Medicine, 54(5), 811–825. https://doi.org/10.1016/s0277-9536(01)00111-3.
Gelman, A., Carlin, J. B., Stern, H. S., Dunson, D. B., Vehtari, A., & Rubin, D. B. (2014). Bayesian data analysis (Vol. 2). Boca Raton, FL: CRC Press.
Geweke, J. (1991). Evaluating the accuracy of sampling-based approaches to the calculation of posterior moments. https://doi.org/10.21034/sr.148
Grunspan, D. Z., Wiggins, B. L., & Goodreau, S. M. (2014). Understanding classrooms through social network analysis: A primer for social network analysis in education research. CBE-Life Sciences Education, 13(2), 167–178. https://doi.org/10.1187/cbe.13-08-0162.
Gurung, R., Sarason, B., & Sarason, I. (1997). Close personal relationships and health outcomes: A key to the role of social support. In S. E. Duck, D. F. Hay, S. E. Hobfoll, W. E. Ickes, & B. M. Montgomery (Eds.), Handbook of personal relationships: Theory, research and interventions (pp. 547–573). Chichester: Wiley.
Handcock, M. S., Raftery, A. E., & Tantrum, J. M. (2007). Model-based clustering for social networks. Journal of the Royal Statistical Society: Series A (Statistics in Society), 170(2), 301–354. https://doi.org/10.1111/j.1467-985X.2007.00471.x.
Harris, K., & Vazire, S. (2016). On friendship development and the Big Five personality traits. Social and Personality Psychology Compass, 10(11), 647–667. https://doi.org/10.1111/spc3.12287.
Hayes, A. F. (2009). Beyond Baron and Kenny: Statistical mediation analysis in the new millennium. Communication Monographs, 76(4), 408–420. https://doi.org/10.1080/03637750903310360.
Hoff, P. D. (2008). Modeling homophily and stochastic equivalence in symmetric relational data. In: Advances in neural information processing systems (pp. 657–664).
Hoff, P. D., Raftery, A. E., & Handcock, M. S. (2002). Latent space approaches to social network analysis. Journal of the American Statistical Association, 97(460), 1090–1098. https://doi.org/10.1198/016214502388618906.
Holland, P. W., Laskey, K. B., & Leinhardt, S. (1983). Stochastic blockmodels: First steps. Social Networks, 5(2), 109–137. https://doi.org/10.1016/0378-8733(83)90021-7.
House, J. S., Landis, K. R., & Umberson, D. (1988). Social relationships and health. Science, 241(4865), 540–545. https://doi.org/10.1177/0022146510383501.
Imai, K., Keele, L., & Tingley, D. (2010). A general approach to causal mediation analysis. Psychological Methods, 15(4), 309–334. https://doi.org/10.1037/a0020761.
Imai, K., & Yamamoto, T. (2013). Identification and sensitivity analysis for multiple causal mechanisms: Revisiting evidence from framing experiments. Political Analysis, 21, 141–171. https://doi.org/10.1093/pan/mps040.
Jose, P. E. (2016). The merits of using longitudinal mediation. Educational Psychologist, 51, 331–341. https://doi.org/10.1080/00461520.2016.1207175.
Kenny, D. A. (2018). Mediation. http://davidakenny.net/cm/mediate.htm.
Kenny, D. A., Korchmaros, J. D., & Bolger, N. (2003). Lower level mediation in multilevel models. Psychological Methods, 8(2), 115. https://doi.org/10.1037/1082-989X.8.2.115.
Krivitsky, P. N., & Handcock, M. S. (2017). latentnet: Latent position and cluster models for statistical networks [Computer software manual]. https://CRAN.R-project.org/package=latentnet.
Krivitsky, P. N., Handcock, M. S., Raftery, A. E., & Hoff, P. D. (2009). Representing degree distributions, clustering, and homophily in social networks with latent cluster random effects models. Social Networks, 31(3), 204–213. https://doi.org/10.1016/j.socnet.2009.04.001.
Kruschke, J. (2014). Doing Bayesian data analysis: A tutorial with R, JAGS, and Stan. Cambridge: Academic Press.
Lee, S.-Y., & Song, X.-Y. (2012). Basic and advanced Bayesian structural equation modeling: With applications in the medical and behavioral sciences. Hoboken: Wiley.
Liu, H., Jin, I. H., & Zhang, Z. (2018). Structural equation modeling of social networks: Specification, estimation, and application. Multivariate Behavioral Research, 53(5), 714–730. https://doi.org/10.1080/00273171.2018.1479629.
Lusher, D., Koskinen, J., & Robins, G. (2013). Exponential random graph models for social networks: Theory, methods, and applications. Cambridge: Cambridge University Press.
MacKinnon, D. P. (2012). Introduction to statistical mediation analysis. Abingdon: Routledge.
MacKinnon, D. P., Fairchild, A. J., & Fritz, M. S. (2007). Mediation analysis. Annual Review of Psychology, 58, 593–614. https://doi.org/10.1146/annurev.psych.58.110405.085542.
MacKinnon, D. P., Krull, J. L., & Lockwood, C. M. (2000). Equivalence of the mediation, confounding and suppression effect. Prevention Science, 1(4), 173–181.
MacKinnon, D. P., Lockwood, C. M., Hoffman, J. M., West, S. G., & Sheets, V. (2002). A comparison of methods to test mediation and other intervening variable effects. Psychological Methods, 7(1), 83–104. https://doi.org/10.1037/1082-989x.7.1.83.
MacKinnon, D. P., Lockwood, C. M., & Williams, J. (2004). Confidence limits for the indirect effect: Distribution of the product and resampling methods. Multivariate Behavioral Research, 39(1), 99–128. https://doi.org/10.1207/s15327906mbr3901_4.
MacKinnon, D. P., Warsi, G., & Dwyer, J. H. (1995). A simulation study of mediated effect measures. Multivariate Behavioral Research, 30(1), 41–62. https://doi.org/10.1207/s15327906mbr3001_3.
McCamish-Svensson, C., Samuelsson, G., Hagberg, B., Svensson, T., & Dehlin, O. (1999). Social relationships and health as predictors of life satisfaction in advanced old age: Results from a Swedish longitudinal study. The International Journal of Aging and Human Development, 48(4), 301–324. https://doi.org/10.2190/GX0K-565H-08FB-XF5G.
McCrae, R. R., Martin, T. A., Hrebickova, M., Urbánek, T., Boomsma, D. I., Willemsen, G., et al. (2008). Personality trait similarity between spouses in four cultures. Journal of Personality, 76(5), 1137–1164. https://doi.org/10.1111/j.1467-6494.2008.00517.x.
Miočević, M., Gonzalez, O., Valente, M. J., & MacKinnon, D. P. (2018). A tutorial in Bayesian potential outcomes mediation analysis. Structural Equation Modeling: A Multidisciplinary Journal, 25(1), 121–136. https://doi.org/10.1080/10705511.2017.1342541.
Muthén, B., & Asparouhov, T. (2012). Bayesian structural equation modeling: A more flexible representation of substantive theory. Psychological Methods, 17(3), 313–35. https://doi.org/10.1037/a0026802.
Newman, M. E., Watts, D. J., & Strogatz, S. H. (2002). Random graph models of social networks. Proceedings of the National Academy of Sciences, 99(suppl 1), 2566–2572. https://doi.org/10.1073/pnas.012582999.
Nordlund, C. (2019). Direct blockmodeling of valued and binary networks: A dichotomization-free approach. Social Networks, 61, 128–143. https://doi.org/10.1016/j.socnet.2019.10.004.
Paul, S., & Chen, Y. (2016). Consistent community detection in multi-relational data through restricted multi-layer stochastic blockmodel. Electronic Journal of Statistics, 2, 3807–3870. https://doi.org/10.1214/16-EJS1211.
Pearl, J. (2014). Interpretation and identification of causal mediation. Psychological Methods, 19(4), 459–81. https://doi.org/10.1037/a0036434.
Preacher, K. J., & Hayes, A. F. (2008). Asymptotic and resampling strategies for assessing and comparing indirect effects in multiple mediator models. Behavior Research Methods, 40(3), 879–891. https://doi.org/10.3758/BRM.40.3.87.
Preacher, K. J., & Selig, J. P. (2012). Advantages of Monte Carlo confidence intervals for indirect effects. Communication Methods and Measures, 6(2), 77–98. https://doi.org/10.1080/19312458.2012.679848.
Reitzel, L. R., Kendzor, D. E., Castro, Y., Cao, Y., Businelle, M. S., Mazas, C. A., et al. (2012). The relation between social cohesion and smoking cessation among black smokers, and the potential role of psychosocial mediators. Annals of Behavioral Medicine, 45(2), 249–257. https://doi.org/10.1007/s12160-012-9438-6.
Richiardi, L., Bellocco, R., & Zugna, D. (2013). Mediation analysis in epidemiology: Methods, interpretation and bias. International Journal of Epidemiology, 42(5), 1511–1519. https://doi.org/10.1093/ije/dyt127.
Roth, D. L., & MacKinnon, D. P. (2012). Mediation analysis with longitudinal data. In J. T. Newsom, R. N. Jones, & S. M. Hofer (Eds.), Longitudinal data analysis: A practical guide for researchers in aging, health, and social sciences (pp. 181–216). New York: Taylor & Francis Group.
Schaefer, D. R., Adams, J., & Haas, S. A. (2013). Social networks and smoking: Exploring the effects of peer influence and smoker popularity through simulations. Health Education and Behavior, 40(1 suppl), 24S–32S. https://doi.org/10.1177/1090198113493091.
Schane, R. E., Glantz, S. A., & Ling, P. M. (2009). Social smoking: Implications for public health, clinical practice, and intervention research. American Journal of Preventive Medicine, 37(2), 124–131. https://doi.org/10.1016/j.amepre.2009.03.020.
Schmittmann, V. D., Cramer, A. O., Waldorp, L. J., Epskamp, S., Kievit, R. A., & Borsboom, D. (2013). Deconstructing the construct: A network perspective on psychological phenomena. New Ideas in Psychology, 31(1), 43–53. https://doi.org/10.1016/j.newideapsych.2011.02.007.
Schwarz, G., et al. (1978). Estimating the dimension of a model. The Annals of Statistics, 6(2), 461–464. https://doi.org/10.1214/aos/1176344136.
Seeman, T. (2001). How do others get under our skin? Social relationships and health. In C. D. Ryff & B. H. Singer (Eds.), Series in affecive science. Emotion, social relations, and health (pp. 189–210). Oxford: Oxford University Press.
Sewell, D. K., & Chen, Y. (2015). Latent space models for dynamic networks. Journal of the American Statistical Association, 110(512), 1646–1657. https://doi.org/10.1080/01621459.2014.988214.
Shalizi, C. R., & Rinaldo, A. (2013). Consistency under sampling of exponential random graph models. Annals of Statistics, 41(2), 508–535. https://doi.org/10.1214/12-AOS1044.
Snijders, T. A. (2002). Markov chain Monte Carlo estimation of exponential random graph models. Journal of Social Structure, 3(2), 1–40. https://doi.org/10.1016/j.socnet.2006.08.001.
Snijders, T. A. (2011). Statistical models for social networks. Annual Review of Sociology, 37, 131–153. https://doi.org/10.1146/annurev.soc.012809.102709.
Su, L., Lu, W., Song, R., & Huang, D. (2020). Testing and estimation of social network dependence with time to event data. Journal of the American Statistical Association, 115(530), 570–582. https://doi.org/10.1080/01621459.2019.1617153.
Sweet, T. M. (2019). Modeling social networks as mediators: A mixed membership stochastic blockmodel for mediation. Journal of Educational and Behavioral Statistics, 44(2), 210–240. https://doi.org/10.3102/1076998618814255.
Sweet, T. M., & Zheng, Q. (2018). Estimating the effects of network covariates on subgroup insularity with a hierarchical mixed membership stochastic blockmodel. Social Networks, 52, 100–114. https://doi.org/10.1016/j.socnet.2017.05.008.
Umberson, D., Crosnoe, R., & Reczek, C. (2010). Social relationships and health behavior across the life course. Annual Review of Sociology, 36, 139–157. https://doi.org/10.1146/annurev-soc-070308-120011.
Valeri, L., & VanderWeele, T. J. (2013). Mediation analysis allowing for exposure-mediator interactions and causal interpretation: Theoretical assumptions and implementation with SAS and SPSS macros. Psychological Methods, 18(2), 137–50. https://doi.org/10.1037/a0031034.
VanderWeele, T. J. (2015). Explanation in causal inference: Methods for mediation and interaction. Oxford: Oxford University Press.
VanderWeele, T. J., & Vansteelandt, S. (2009). Conceptual issues concerning mediation, interventions and composition. Statistics and Tts Interface, 2(4), 457–468. https://doi.org/10.4310/SII.2009.v2.n4.a7.
Waldinger, R. J., Cohen, S., Schulz, M. S., & Crowell, J. A. (2015). Security of attachment to spouses in late life: Concurrent and prospective links with cognitive and emotional well-being. Clinical Psychological Science, 3(4), 516–529. https://doi.org/10.1177/2167702614541261.
Wang, L., & Preacher, K. J. (2015). Moderated mediation analysis using Bayesian methods. Structural Equation Modeling: A Multidisciplinary Journal, 22(2), 249–263. https://doi.org/10.1080/10705511.2014.935256.
Wang, L., & Zhang, Z. (2011). Estimating and testing mediation effects with censored data. Structural Equation Modeling: A Multidisciplinary Journal, 18(1), 18–34. https://doi.org/10.1080/10705511.2011.534324.
Wasserman, S., & Faust, K. (1994). Social network analysis: Methods and applications (Vol. 8). Cambridge: Cambridge university Press.
Westaby, J. D., Pfaff, D. L., & Redding, N. (2014). Psychology and social networks: A dynamic network theory perspective. American Psychologist, 69(3), 269–284. https://doi.org/10.1037/a0036106.
Yang, J., McAuley, J. & Leskovec, J. (2013). Community detection in networks with node attributes. In: Data mining (ICDM), 2013 IEEE 13th international conference on (pp. 1151–1156). https://doi.org/10.1109/ICDM.2013.167.
Yu, Q., Medeiros, K. L., Wu, X., & Jensen, R. E. (2018). Nonlinear predictive models for multiple mediation analysis: With an application to explore ethnic disparities in anxiety and depression among cancer survivors. Psychometrika, 83(4), 991–1006. https://doi.org/10.1007/s11336-018-9612-2.
Yuan, Y., & MacKinnon, D. P. (2009). Bayesian mediation analysis. Psychological Methods, 14(4), 301–322. https://doi.org/10.1037/a0016972.
Zhang, Q., & Phillips, B. (2018). Three-level longitudinal mediation with nested units: How does an upper-level predictor influence a lower-level outcome via an upper-level mediator over time? Multivariate Behavioral Research, 53(5), 655–675. https://doi.org/10.1080/00273171.2018.1471975.
Zhang, Q., Wang, L., & Bergeman, C. (2017). Multilevel autoregressive mediation models: Specification, estimation, and applications. Psychological Methods, 23(2), 278–297. https://doi.org/10.1037/met0000161.
Zhao, Y., Levina, E., Zhu, J., et al. (2012). Consistency of community detection in networks under degree-corrected stochastic block models. The Annals of Statistics, 40(4), 2266–2292. https://doi.org/10.1214/12-AOS1036.
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
This study was partially supported by the Institute for Scholarship in the Liberal Arts, College of Arts and Letters, University of Notre Dame, by Humanities and Social Sciences Research Project in 2020 (2020-22-0389), Yonsei University and by Basic Science Research Program through the National Research Foundation of Korea (NRF 2020R1A2C1A01009881).
Appendix
Appendix
1.1 Gibbs Sampler
Because the posterior distribution has no closed form, we thus use the Markov chain Monte Carlo method to draw samples of parameters from their posterior distributions. The steps of Gibbs sampler are provided below. Given desired length T and initials (\(\varvec{i}_{1}^{0},i_{2}^{0},\varvec{a}^{0},\varvec{b}^{0}\), \(\alpha ^{0},c'^{0},(\sigma _{1,d}^{2},d=1,2,\ldots ,D)^{0}\),\((\sigma _{2}^{2})^{0}\)),
-
1.
In the \(k'\)th iteration, draw \(\mathbf{z}_{i}^{k}\) from its conditional posterior distribution \(P(\mathbf{z}_{i}|\varvec{i}_{1}^{k-1},i_{2}^{k-1},\varvec{a}^{k-1},\varvec{b}^{k-1},\alpha ^{k-1},(c'){}^{k-1},(\sigma _{1,d}^{2},d=1,2,\ldots ,D)^{k-1},(\sigma _{2}^{2})^{k-1},X, Y,{} \mathbf{M})\), for all actors i in the network;
-
2.
Draw \(\varvec{i}_{1}^{k}\) from its conditional posterior distribution \(P(\varvec{i}_{1}|i_{2}^{k-1}{,}\varvec{a}^{k-1},\varvec{b}^{k-1},\alpha ^{k-1},(c')^{k-1},(\sigma _{1,d}^{2},d{=}1,2,{\ldots },D)^{k{-}1},(\sigma _{2}^{2})^{k-1},\mathbf{z}_{i}^{k},X,Y,\mathbf{M})\) with updated \(\mathbf{z}_{i}^{k};\)
-
3.
Draw \(i_{2}^{k}\) from its conditional posterior distribution \(P(i_{2}|\varvec{i}_{1}^{k},\varvec{a}^{k-1},\varvec{b}^{k-1},\alpha ^{k-1},c'^{k-1},(\sigma _{1,d}^{2},d=1,2,\ldots ,D)^{k-1},(\sigma _{2}^{2}){}^{k-1},\mathbf{z}_{i}^{k},X, Y,\mathbf{M})\)
-
4.
Draw \(\alpha ^{k}\) from its conditional posterior distribution \(P(\alpha |\varvec{i}_{1}^{k},i_{2}^{k},\varvec{a}^{k-1},\varvec{b}^{k-1},(c'){}^{k-1},(\sigma _{1,d}^{2},d=1,2,\ldots ,D)^{k-1},(\sigma _{2}^{2})^{k-1},{\mathbf{z}}_{i}^{k},X, Y,\mathbf{M}\));
-
5.
Draw \(\varvec{a}^{k}\)from its conditional posterior distribution P(\(\varvec{a}|\varvec{i}_{1}^{k},i_{2}^{k},\varvec{b}^{k-1},\alpha ^{k},(c'){}^{k-1},(\sigma _{1,d}^{2},d=1,2,\ldots ,D)^{k-1},(\sigma _{2}^{2})^{k-1}\),\(\mathbf{z}_{i}^{k},X, Y\), \(\mathbf{M}\));
-
6.
Draw \(\varvec{b}^{k}\) from its conditional posterior distribution P(\(\varvec{b}|\varvec{i}_{1}^{k},i_{2}^{k},\varvec{a}^{k},\alpha ^{k},(c')^{k-1},(\sigma _{1,d}^{2},d=1,2,\ldots ,D)^{k-1},(\sigma _{2}^{2})^{k-1}\),\(\mathbf{z}_{i}^{k},X,Y\), \(\mathbf{M}\));;
-
7.
Draw \(c'^{k}\) from its conditional posterior distribution P(\(c'|\varvec{i}_{1}^{k},i_{2}^{k},\varvec{a}^{k}, {\varvec{b}^{k}},\alpha ^{k},(\sigma _{1,d}^{2},d=1,2,\ldots ,D)^{k-1},(\sigma _{2}^{2})^{k-1}\),\(\mathbf{z}_{i}^{k},X,Y\),\(\mathbf{M}\));;
-
8.
Draw \((\sigma _{1,d}^{2},d=1,2,\ldots ,D)^{k}\) from its conditional posterior distribution P(\(\sigma _{1,d}^{2},d=1,2,\ldots ,D|\varvec{i}_{1}^{k},i_{2}^{k},\varvec{a}^{k}, {\varvec{b}^{k}},\alpha ^{k},c'^{k},(\sigma _{2}^{2})^{k-1}\),\(\mathbf{z}_{i}^{k},X\), \(\mathbf{M}\));
-
9.
Draw \((\sigma _{2}^{2})^{k}\) from its conditional posterior distribution P(\(\sigma _{2,}^{2}|\varvec{i}_{1}^{k},i_{2}^{k},\varvec{a}^{k}, {\varvec{b}^{k}},\alpha ^{k}\),\((\sigma _{1,d}^{2},d=1,2,\ldots ,D)^{k},X,Y\),\(\mathbf{M}\)).
Repeat steps 1–9 until the chain reaches convergence and has sufficient posterior samples.
1.2 OpenBUG Code
The following is the OpenBUG code used for empirical data analysis with three latent dimensions.
Rights and permissions
About this article
Cite this article
Liu, H., Jin, I.H., Zhang, Z. et al. Social Network Mediation Analysis: A Latent Space Approach. Psychometrika 86, 272–298 (2021). https://doi.org/10.1007/s11336-020-09736-z
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11336-020-09736-z