Path Analysis for Mediation

if (!require(lavaan)) install.packages("lavaan")
library(lavaan)

A sample of 653 undergraduates completed the six measures depicted in Figure 1 (residual covariances among the mediators are not shown for diagram clarity). Table 3 shows the correlations of the six variables by gender.

The research questions were as follows: (1) To what extent do these four mediators account for the relationship between mindfulness and warmth towards feminists? (2) How do these direct and indirect effects differ by gender?

Accordingly, we will begin with a single-group model, and then examine a multiple-group model in which all parameters are estimated separately for men and women. From there, one would proceed by constraining specific direct and indirect effects to be equal across genders and note the decrease in model fit in doing so.

Figure 1 from: Gervais, S. J. & Hoffman, L. (2013). Just think about it: Mindfulness, sexism, and prejudice towards feminists. Sex Roles, 68(5), 283-295.

Figure 1 from: Gervais, S. J. & Hoffman, L. (2013). Just think about it: Mindfulness, sexism, and prejudice towards feminists. Sex Roles, 68(5), 283-295.