27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1016 MRSETS<br />

These variables are coded 1 for yes and 0 for no. A multiple dichotomy group combines<br />

the five variables into a single variable with five categories in which a respondent could<br />

be counted zero to five times, depending on how many of the five elementary variables<br />

contain a 1 for that respondent. It is not required that the elementary variables be dichotomous.<br />

If the five elementary variables had the values 1 for regularly, 2 for occasionally,<br />

and 3 for never, it would still be possible to create a multiple dichotomy group that counts<br />

the variables with 1’s and ignores the other responses.<br />

• Multiple category (MC) groups combine variables that have identical categories. For<br />

example, suppose that instead of having five yes/no questions for the five news sources,<br />

there are three variables, each coded 1 = Internet, 2 = radio, 3 = television, 4 = magazines,<br />

and 5 = newspapers. For each variable, a respondent could select one of these values. In<br />

a multiple category group based on these variables, a respondent could be counted zero<br />

to three times, once for each variable for which he or she selected a news source. For this<br />

sort of multiple response group, it is important that all of the source variables have the<br />

same set of values and value labels and the same missing values.<br />

The MRSETS command also allows you to delete sets and to display information about the<br />

sets in the data file.<br />

<strong>Syntax</strong> Conventions<br />

The following conventions apply to the MRSETS command:<br />

• All subcommands are optional, but at least one must be specified.<br />

• Subcommands can be issued more than once in any order.<br />

• Within a subcommand, attributes can be specified in any order. If an attribute is specified<br />

more than once, the last instance is honored.<br />

• Equals signs are required where shown in the syntax diagram.<br />

• Square brackets are required where shown in the syntax diagram.<br />

• The TO convention and the ALL keyword are honored in variable lists.<br />

MDGROUP Subcommand<br />

/MDGROUP NAME= setname LABEL= ’label’<br />

VARIABLES= varlist<br />

VALUE= {value }<br />

{’chars’}<br />

The MDGROUP subcommand defines or modifies a multiple dichotomy set. A name, variable<br />

list, and value must be specified. Optionally, a label can be specified for the set.<br />

NAME The name of the multiple dichotomy set. The name must follow SPSS variable<br />

naming conventions and begin with a $. If the name refers to an existing<br />

set, the set definition is overwritten.

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

Saved successfully!

Ooh no, something went wrong!