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 15where the variable ymean is the average of variables y1 through y10.Variables used with the list function must be variables from the NAMESstatement of the VARIABLE command. The order of the variables istaken from the NAMES statement not the USEVARIABLES statement.Variables created using the MEAN option cannot be used in subsequentDEFINE statements.CLUSTER_MEANThe CLUSTER_MEAN option is used with the CLUSTER option tocreate a variable that is the average of the values of an individual-levelvariable for each cluster. It is specified as follows:clusmean = CLUSTER_MEAN (x);where the variable clusmean is the average of the values of x for eachcluster. Averages are based on the set of non-missing values for theobservations in each cluster. Any cluster for which all observations havemissing values is assigned a missing value on the cluster mean variable.A variable created using the CLUSTER_MEAN option cannot be usedin subsequent DEFINE statements in the same analysis.Variables used with the list function must be variables from the NAMESstatement of the VARIABLE command. The order of the variables istaken from the NAMES statement not the USEVARIABLES statement.Variables created using the CLUSTER_MEAN option cannot be used insubsequent DEFINE statements.SUMThe SUM option is used to create a variable that is the sum of a set ofvariables. It is specified as follows:sum = SUM (y1 y3 y5);where the variable sum is the sum of variables y1, y3, and y5. Anyobservation that has a missing value on one or more of the variablesbeing summed is assigned a missing value on the sum variable.The list function can be used with the SUM option as follows:516

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

Saved successfully!

Ooh no, something went wrong!