Unit 7 - Stacking and Merging Data Files
Unit 7 - Stacking and Merging Data Files
Objectives
To successfully complete this learning unit, you will be expected to:
1.
2.
3.
4.
Learning Activities
u07s1 Studies
Readings
Use your SPSS Essentials: Managing and Analyzing Social Sciences Data text to complete the following:
Launch Presentation |
Transcript
Launch Presentation |
Transcript
Response Guidelines
Respond to at least two other learners by modifying the situation described in their posts in such a way that one of
the two merging operations would be useful.
Resources
Download the data files unit_7a.sav, unit_7b.sav, and unit_7_rent.sav from the Resources and save
them to the unit7 subdirectory on your computer.
o Save the new file as unit_7_stacked.sav. The file should contain 20 cases, made up of the 10
randomly selected cases from unit_7a.sav, and the 10 cases contained in the unit_7b.sav file.
2.
Open the unit_7_rent.sav file in SPSS and perform the following operations.
o Sort the unit_7_rent.sav file based on ascending values of the ID variable, then save the file. You
can save it over the original version using the same name, because the only change you have
made is to sort it.
o Close and re-open SPSS (to avoid confusion among data sets while performing complex merge
operations).
o Open the unit_7_stacked.sav data file.
o Merge the unit_7_rent.sav file with the unit_7_stacked.sav using ID number as the key
variable. Perform the merge such that your final merged file has the following characteristics:
It should only include cases that came from the unit_7_stacked.sav file (20 cases).
It should only include only the RENT variable from the unit_7_rent.sav file, but exclude
the AREA variable.
Submit the unit_7_stacked.sav, unit_7_merged.sav, and associated output in the assignment area
by attaching it to your assignment submission.
Resources
"unit_7a.sav"
"unit_7_rent.sav"
"unit_7b.sav"