0

I'm learning to use various sem-pls software (such as smart-pls, warp-pls, and r), but I'm having trouble building a model using moderator variables, with warp-pls as the reference model.

sem-pls model in warp-pls

In the warppls model, the "kepuasa" variable has no effect on "loyalita", and I write the r syntax as follows

sem-pls syntax with SEMinR

dapen <- read_excel("E:/GDrive/latihan_seminr/dapen.xlsx")

modelouter <-constructs(
  composite("motivasi", multi_items("X1.", 1:4)),
  composite("kepuasan", multi_items("X2.", 1:3)),
  composite("loyalita", multi_items("Y.", 1:5)),
  interaction_term(iv = "motivasi", moderator = "kepuasan", method = two_stage))
  
modelinner <-relationships(
  paths(from = c("motivasi","motivasi*kepuasan"), to = ("loyalita")))

modelpls <-estimate_pls(
  data = dapen,
  measurement_model = modelouter,
  structural_model = modelinner
)

and when I run the code I created, I get an error like the following :

error in r console

Generating the seminr model
Error in structural_model[, 1] : incorrect number of dimensions

what i want to ask is, can we run the same research model as depicted in warppls?

I'm having trouble using SEMinR and comparing the test results with warppls, want to know the appropriate code and syntax

hamagust
  • 728
  • 2
  • 10
  • 28

0 Answers0