本人以前用以下代码做结构方程时,可以输出潜变量值的,但是最近怎么输出不了,求大神指点一二··········
library(plspm)
data(satisfaction)
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.mat <- rbind(IMAG, EXPE, QUAL, VAL, SAT, LOY)
sat.sets <- list(1:5,6:10,11:15,16:19,20:23,24:27)
sat.mod <- rep("A",6) ## reflective indicators
res2 <- plspm(satisfaction, sat.mat, sat.sets, sat.mod, scheme="centroid",
scaled=FALSE)
plot(res2)
plot(res2, what="weights")
plot(res2, what="loadings")
plot(res2, what="all")
res2$latents