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

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

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

MATCH FILES<br />

MATCH FILES FILE={file} [TABLE={file}]<br />

{* } {* }<br />

[/RENAME=(old varnames=new varnames)...]<br />

[/IN=varname]<br />

/FILE==... [TABLE= ...]<br />

[/BY varlist]<br />

[/MAP]<br />

[/KEEP={ALL** }] [/DROP=varlist]<br />

{varlist}<br />

[/FIRST=varname] [/LAST=varname]<br />

**Default if the subcommand is omitted.<br />

Example<br />

MATCH FILES FILE=PART1 /FILE=PART2 /FILE=*.<br />

Overview<br />

Options<br />

MATCH FILES combines variables from 2 up to 50 SPSS-format data files. MATCH FILES<br />

can make parallel or nonparallel matches between different files or perform table lookups.<br />

Parallel matches combine files sequentially by case (they are sometimes referred to as<br />

sequential matches). Nonparallel matches combine files according to the values of one<br />

or more key variables. In a table lookup, MATCH FILES looks up variables in one file and<br />

transfers those variables to a case file.<br />

The files specified on MATCH FILES can be SPSS-format data files created with SAVE or<br />

XSAVE or the working data file. The combined file becomes the new working data file.<br />

Statistical procedures following MATCH FILES use this combined file unless you replace it<br />

by building another working file. You must use the SAVE or XSAVE commands if you want<br />

to save the combined file as an SPSS-format data file.<br />

In general, MATCH FILES is used to combine files containing the same cases but different<br />

variables. To combine files containing the same variables but different cases, use ADD<br />

FILES. To update existing SPSS-format data files, use UPDATE.<br />

MATCH FILES is often used with the AGGREGATE command to add variables with<br />

summary measures (sum, mean, and so forth) to the data. For an example, see p. 92.<br />

Variable Selection. You can specify which variables from each input file are included in the<br />

new working file using the DROP and KEEP subcommands.<br />

905

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

Saved successfully!

Ooh no, something went wrong!