sem-in-r / seminr

Natural feeling domain-specific language for building structural equation models in R for estimation by covariance-based methods (like LISREL/Lavaan) or partial least squares (like SmartPLS)
58 stars 19 forks source link

The plot() function for a PLS model displays two paths for each indicator related to a factor . #348

Open alibezzaa opened 5 months ago

alibezzaa commented 5 months ago

Well, this is a simple issue that I never had. While using this code for a moderated mediation model:

measurement model

mm = constructs( composite("E_INT", multi_items("EI", 1:6)), composite("M_LEARN", multi_items("ML", 1:4)), composite("S_EFF", multi_items("SE", 1:5)), composite("FF", single_item("FF")), composite("E_INT", multi_items("EI", 1:6)), interaction_term(iv = "S_EFF", moderator = "E_INT", method = two_stage))

structural model

sm = relationships( paths("FF", c("S_EFF", "M_LEARN")), paths(c("S_EFF","E_INT","S_EFF*E_INT"), "M_LEARN") )

The resulting plot displays for one factor (E_INT) two paths for each indicator, like this :

Rplot