10.07.2015 Views

Mplus Users Guide v6.. - Muthén & Muthén

Mplus Users Guide v6.. - Muthén & Muthén

Mplus Users Guide v6.. - Muthén & Muthén

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 15The _MISSING keyword can be used in DEFINE to refer to missingvalues.NON-CONDITIONAL STATEMENTSWhen a non-conditional statement is used to transform existing variablesor create new variables, the variable on the left side of the equal sign isassigned the value of the expression on the right side of the equal sign.For example,kilos = .454 * pounds;transforms the original variable from pounds to kilograms. Nonconditionalstatements can be used to create new variables. Forexample,abuse = item1 + item2 + item8 + item9;If an individual has a missing value on any variable used on the righthandside of the equal sign, they will have a missing value on thevariable on the left-hand side of the equal sign.CONDITIONAL STATEMENTSConditional statements can also be used to transform existing variablesand to create new variables. Conditional statements take the followingform:IF (gender EQ 1 AND ses EQ 1) THEN group = 1;IF (gender EQ 1 AND ses EQ 2) THEN group = 2;IF (gender EQ 1 AND ses EQ 3) THEN group = 3;IF (gender EQ 2 AND ses EQ 1) THEN group = 4;IF (gender EQ 2 AND ses EQ 2) THEN group = 5;IF (gender EQ 2 AND ses EQ 3) THEN group = 6;An individual with a missing value on any variable used in theconditional statement receives a missing value on the new variable. Ifno value is specified for a condition, individuals with that condition areassigned a missing value.514

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!