Mx 1.x

Running the script "models/passing/univACE.mx"
I get the following error suggesting that "select if" is referring to a variable name not in the labels list... which is odd, as it clearly is. Any clues?
t
The following MX script lines were read for group 2
TITLE G2: MZ DATA
Note: Opening #include file 1 ozbmi.dat
DATA NINPUT=12
RECTANGULAR FILE=OZBMI.REC
Rectangular continuous data read initiated
NOTE: Rectangular file contained 3808 records with data
that contained a total of 44853 observations
LABELS FAM AGE ZYG PART WT1 WT2 HT1 HT2 HTWT1 HTWT2 BMI1 BMI2
Note: Closing #include file 1
SELECT IF ZYG=1
We have a problem whose error code is 204
and which I ran across at line number 34
of your input script
SELECT IF ZYG=1
~~~
I can't find the Select If variable in the variable label list' Please check spelling carefully
Problem occurred in group # 2
so the file as included
this causes an error
Select if zyg=1
this works
Select if zyg =1
pushed revision
Log in or register to post comments
HI, I have a question about
*PS. I know it is all in the .mxo file as well, but for models with many variables I find it useful to have the results in the Project Manager form
Log in or register to post comments
In reply to HI, I have a question about by Sanja
Hi Sanja Hmmm that is a
Hmmm that is a little explored part of functionality of Classic Mx's GUI. If the Mx GUI cannot read it back in itself (I would start with a cleanly started Mx GUI) then please report it to gxie at vcu.edu as a possible bug.
Log in or register to post comments
In reply to Hi Sanja Hmmm that is a by neale
Just reported it, thanks.
Sanja
Log in or register to post comments
Hi all, I dont know exactly
Thanks in advance.
Iftikhar Ahmad
Log in or register to post comments
In reply to Hi all, I dont know exactly by ifti_ch2002
Could you post the script
Log in or register to post comments
In reply to Hi all, I dont know exactly by ifti_ch2002
If you're getting an error
The odds are good that the problem is exactly what it says--that is, the covariance matrix that is being submitted as data is incorrect. You can check this in a couple of ways. I would probably check it by first loading the covariance matrix into R and examining it. The diagonal should be strictly positive values, the matrix should be symmetric, there should be no duplicate rows and no rows of all zeros. If you run
eigvals <- eigen(myCov, only.values=TRUE)
, wheremyCov
is the name of your covariance matrix, theneigvals$values
should be a list of positive values, one for each row of your covariance matrix.If your covariance matrix doesn't pass these tests, something is wrong further up the line. Where are you getting your covariance matrix from? How is it being calculated?
If your observed covariance matrix does pass these tests, but you're still getting the error, I'm not sure what the problem is. Are you getting the same error from OpenMx as you were from classic MX?
Log in or register to post comments
In reply to If you're getting an error by tbrick
Awesome
Log in or register to post comments