intProd() or probe2WayMC() will not work here, since I am conducting interactions among observed variables, not latent variables.
# Model estimation with latent interaction
int_model <- '
#loadings
iv =~ IVc
mod =~ MODc
int =~ ICMODdc #doublecentered
dv =~ DV
#regression
mod ~ CTRL1 + CNTRL2 + CNTRL3 + VAR1 + VAR2
dv ~ iv + mod + int + CTRL1 + CNTRL2 + CNTRL3 + VAR3 + VAR4
#covariances
VAR3 ~~ iv + mod + VAR4
VAR4 ~~ iv + mod
'
int_fit <- sem(int_model, data = data,
estimator="MLM")
summary(int_fit, fit.measures = TRUE, standardized=TRUE)
# Simple Slopes
probe <- probe2WayMC(int_fit, c("iv",
"mod", "int"), "dv", "mod",
c(-sqrt(0.459),0, sqrt(0.459))) #estimators from moderator
probe
plotProbe(probe, c(-3,3))
"Error in varEst[targetcol, targetcol] : subscript out of bounds".
Terrence D. Jorgensen (he, him, his)