Hi there,
Now I have a problem about CI estimation in a common pathway model. I can not estimate the CI of the path coeffcients of latent factors. I added following codes to the script:
matIl <- mxMatrix( type="Iden", nrow=nf, ncol=nf, name="Il")
invSDl <- mxAlgebra( expression=solve(sqrt(IlV)), name="iSDl")
sta <- mxAlgebra(iSDl %% al, name="sta") # standarized path coefficients of A
stc <- mxAlgebra(iSDl %% cl, name="stc") # standarized path coefficients of C
ste <- mxAlgebra(iSDl %% el, name="ste") # standarized path coefficients of E
The nf denotes the number of latant factors. If I use the nv (the number of all components in the model), the results will only show the parameters of components, not the latant factor which I'm interesed with. But now, it reply with "Error in runHelper(model, frontendStart, intervals, silent, suppressWarnings, : Setting improper index (1) from vector of Rf_length 0". I don't know how can I settle it (If I remove these codes, the script could run smoothly without estimating the standardized path coefficients). How can I reivise the codes? Many thanks.
Best,
Lizhi