Usevariables PreviousNext
Mplus Discussion > Structural Equation Modeling >
Message/Author
 Son K. Lam posted on Thursday, July 24, 2008 - 12:06 pm
I was using the "USEVARIABLES" to specify the specific variables I used from a list of 100 variables.

VARIABLE:
NAMES ARE (LIST OF VARIABLES, several lines);
USEVARIABLES ARE (LIST);

mPLUS 5 does not recognize this command, and classify "USEVARIABLES" as a variable name. I do have a tab between the variables. Can you help? Thanks!
 Linda K. Muthen posted on Thursday, July 24, 2008 - 2:06 pm
You probably don't have a semicolon at the end of the NAMES statement or the tabbing pushes the semicolon beyond column 90.
 Pia H. posted on Monday, March 21, 2016 - 8:21 am
Hello,

I'm trying to specify a SEM in which I only need observations whose zygosity has been labeled 1 or 2 in the .sav and later .dat file.
The original .dat file contains 3931 observations;
minus those observations that should not be included because they are labeled with 0 or -99 in the zygosity item, there should be 2812 observations left.
However, mPlus gives me a number of 3422 observations. Is there any logic error in my USEOBSERVATIONS section or did I miss anything else?


USEOBSERVATIONS ARE
(MAOA_ZYG EQ 1 OR MAOA_ZYG EQ 2);

Thanks a lot!

Best,
Pia
 Pia H. posted on Monday, March 21, 2016 - 8:40 am
Maybe this is of interest:
If I change the USEOBSERVATIONS command to just

USEOBSERVATIONS ARE
MAOA_zyg EQ 2;

I get the following error:
"Categorical variable MAOA_zyg contains less than 2 categories."

In fact, this variable has 3 categories which all have been applied.
The same happens for MAOA_zyg EQ 1.

Thank you very much,
Pia
 Linda K. Muthen posted on Monday, March 21, 2016 - 9:57 am
Please send your output, data, and license number to support@statmodel.com.
Back to top
Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: