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.

MRSETS<br />

MRSETS is available in the Tables option.<br />

MRSETS<br />

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

VARIABLES= varlist<br />

VALUE= {value }<br />

{’chars’}<br />

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

VARIABLES= varlist<br />

/DELETE NAME= {[setlist]}<br />

{ALL }<br />

/DISPLAY NAME= {[setlist]}<br />

{ALL }<br />

The set name must begin with a $ and follow SPSS variable naming conventions.<br />

Square brackets shown in the DELETE and DISPLAY subcommands are required if one or more set<br />

names is specified, but not with the keyword ALL.<br />

Example<br />

MRSETS<br />

/MDGROUP NAME=$mltnews LABEL=’News sources’<br />

VARIABLES=news5 news4 news3 news2 news1<br />

VALUE=1<br />

/DISPLAY NAME=[$mltnews].<br />

MRSETS<br />

/MCGROUP NAME=$mltcars<br />

LABEL=’Car maker, most recent car’<br />

VARIABLES=car1 car2 car3<br />

/DISPLAY NAME=[$mltcars].<br />

Overview<br />

The MRSETS command defines and manages multiple response sets. The set definitions are<br />

saved in the SPSS data file, so they are available whenever the file is in use. Two types can<br />

be defined:<br />

• Multiple dichotomy (MD) groups combine variables such that each variable becomes a<br />

category in the group. For example, take five variables that ask for yes/no responses to<br />

the questions:<br />

Do you get news from the Internet?<br />

Do you get news from the radio?<br />

Do you get news from television?<br />

Do you get news from news magazines?<br />

Do you get news from newspapers?<br />

1015

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

Saved successfully!

Ooh no, something went wrong!