Attachment | Size |
---|---|
Lavaan twin modelling[1].R [6] | 1.51 KB |
Hi Mike,
Hope this finds you well. I'm trying to run a multi-group SEM (twin data) using summary statistics rather than raw data. I have the covariance and asymptotic covariance matrices. I think I'm hitting errors in the way I'm handling the multi-group aspect - as WLS says the following:
Error in withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning")) :
(list) object cannot be coerced to type 'double'
I've supplied the two matrices as lists - one for each group. The script is attached.
I also get this message:
In addition: Warning message:
In if (is.pd(Cov)) { :
the condition has length > 1 and only the first element will be used
Any help much appreciated as always!
Best,
Pasco