Hi,
I would like to perform a mediation analysis by defining the indirect effects with mx.algebras in the wls() funktion.
I tried mx.algebras= list( ind=mxAlgebra(b410*b14, name="ind"))), where b410 and b14 refer to the paths in the A matrix. However, I get the following error in the analysis:
Error in running the mxModel:
Error in wls(Cov = R, asyCov = acov, n = n, Smatrix = S, Amatrix = A, :
object 'out' not found
In addition: Warning message:
In runHelper(model, frontendStart, intervals, silent, suppressWarnings, :
SLSQP: Failed due to singular matrix E or C in LSQ subproblem or rank-deficient equality constraint subproblem or positive directional derivative in line search
What I am doing wrong?
Looking forward to your help. Thanks!