## Not run: ------------------------------------
# ## typical example of PLS-PM in customer satisfaction analysis
# ## model with six LVs and reflective indicators
#
# # load dataset satisfaction
# data(satisfaction)
#
# # inner model matrix
# IMAG = c(0,0,0,0,0,0)
# EXPE = c(1,0,0,0,0,0)
# QUAL = c(0,1,0,0,0,0)
# VAL = c(0,1,1,0,0,0)
# SAT = c(1,1,1,1,0,0)
# LOY = c(1,0,0,0,1,0)
# sat_path = rbind(IMAG, EXPE, QUAL, VAL, SAT, LOY)
#
# # outer model list
# sat_blocks = list(1:5, 6:10, 11:15, 16:19, 20:23, 24:27)
#
# # vector of reflective modes
# sat_modes = rep("A", 6)
#
# # apply plspm.fit
# satpls = plspm.fit(satisfaction, sat_path, sat_blocks, sat_modes,
# scaled=FALSE)
#
# # summary of results
# summary(satpls)
#
# # default plot (inner model)
# plot(satpls)
#
## ---------------------------------------------
Run the code above in your browser using DataLab