Attachment | Size |
---|---|
Output.doc [6] | 30.5 KB |
ParameterBased_Aug7.doc [7] | 30 KB |
Figure.doc [8] | 89.5 KB |
Hello all,
I am trying to conduct a parameter based MetaSEM. My model includes several mediators which are in parallel, and one mediator in series with the others (Attached is the figure summarising the model).
I have tried to run the code, however, R is giving me the following error message:
Error in (function (x, n, standardized = TRUE, direct.effect = TRUE, run = TRUE) : length of 'dimnames' [1] not equal to array extent
Error: object 'indirect1' not found
I have attached the code I am currently using.
Based on the figure, have I respected the order of the variables in my code? Also, if I want to include a variable (covariate) predicting all the other variables, but I am not interested in its indirect effects, how can I do so?
I would highly appreciate the help.
Thank you in advance.
Regards,
Arin