Another advantage of using path diagrams is that they can facilitate specifying the regression model in R, as the lavaan (Rosseel, 2012) package uses path models for input. The lavaan operators for specifying path models are given in Table 2. Beaujean (2014) contains some worked examples of regression models using lavaan.