Attachment | Size |
---|---|
Bivariate_ASD_SK_Forum.R | 4.73 KB |
asdtrainingfile.dat | 20.11 KB |
Hello!
I'm trying to run a bivariate model to estimate ACE for autism and social skills. Autism has 1 threshold and social skills 5.
Do I need to specify both thresholds for the model? At the moment the script I've adapted does not do that. However, it doesn't run and returns the following error message:
"twinSat' exited abnormally with the error message: Objective function returned a value of NaN at iteration 0.1."
I want the threshold for diagnosis of autism to be above 2.3 score cut off point.
It has been pointed out to me that I am not setting the values right, but after trying different starting values and increments I still get the same error message.
Could anyone help, pretty please!??
MANY THANKS IN ADVANCE.
Bea
I thought I had it - matrix Low1 should be declared as Lower, not Full. Having fixed that and mxRun with unsafe=T it still fails. The covariance matrices look positive definite, the thresholds are in order, means are zero... I am a bit stuck too, will think about it. But do make the change to Low1. Oh, now I see. You need to mxFactor the ASD variable to have only two levels. However, it then becomes a problem that the expected correlation matrix of the MZ's can go negative definite (because you've individually estimated the correlations). I think you may need to head to Cholesky land or similar in order to constrain the correlation matrix to stay positive definite.