SPSS MRSets

The MRSETS command creates multiple-response sets.


Usage

mrsets /mdgroup name=foobarbaz variables=foo bar baz value=1.
mrsets /mdgroup name=foobarbaz variables=foo bar baz value=1 label="Foo, bar, and baz".

The /MDGROUP subcommand defines the series of variables that represent a multiple-dichotomy group. For numeric variables, the VALUE option must specify an integer. For string variables, it must specify a string value no longer than the shortest component variable.

An optional label for the set can be specified on the LABEL option. Alternatively, specify LABELSOURCE=VARLABEL and the set will inherit the label from the first component variable.

By default, SPSS will use the component variable labels (or if not labeled, variable names) as the set's value labels. Add the CATEGORYLABELS=VARLABELS option to explicitly allow this behavior, or add the CATEGORYLABELS=COUNTEDVALUES option to instead use the component value label of the counted value. (This could be useful if, for example, the value labels of foo are 0="Not foo" 1="Foo".) SPSS will warn if component variables have matching labels.

To define a multi-category group, use the /MCGROUP subcommand. (This is useful if, for example, foo represents the first selection, bar represents the second selection, and so on.) The LABELSOURCE and CATEGORYLABELS options are not allowed on this subcommand. SPSS will inherit the first component variable's value labels, but also it will warn if any component variable has differing labels.

Delete

To instead delete a multiple-response set, specify the /DELETE subcommand.

mrsets /delete name=foobarbaz.

Display

To display information about a multiple-response set, specify the /DISPLAY subcommand.

mrsets /display name=foobarbaz.


Data Model

The MRSETS command executes immediately. Pending transformations are not executed and the active dataset is not read.


See also

PSPP manual for MRSETS


CategoryRicottone

SPSS/MRSets (last edited 2023-06-11 21:18:05 by DominicRicottone)