Session 15 Merging Data in SPSS

Slides:



Advertisements
Similar presentations
MICS Data Processing Workshop
Advertisements

MICS4 Data Processing Workshop Multiple Indicator Cluster Surveys Data Processing Workshop SPSS general commands Overview.
Microsoft Office Illustrated Fundamentals Unit K: Working with Data.
RightNow 8 -- Adding a new report: New > Report: ORAnalytics > Reports > New Report
SAS Programming:File Merging and Manipulation. Reading External Files (review) data barf; * create the dataset BARF; infile ’s:\mysas\Table7.1'; * open.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
AVP for Institutional Effectiveness and Director of IR Muriel Lopez-Wagner Assistant Director Tanner Carollo Institutional Effectiveness Associate Joanna.
Deviation = The sum of the variables on each side of the mean will add up to 0 X
GRA 5917: Input Politics and Public Opinion Data manipulation and descriptive statistics GRA 5917 Public Opinion and Input Politics. Lecture, August 26th.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
Programming with Microsoft Visual Basic 2012 Chapter 13: Working with Access Databases and LINQ.
© Copyright 2000, Julia Hartman 1 Next An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Using Command Syntax.
Multiple Indicator Cluster Surveys Data Processing Workshop
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 9 – Building Links,
Data Liberation Training 2001 Complex Files: Pasting and Cutting with SPSS Université de Montréal Wendy Watkins April 24, 2001.
Working with EU-SILC using the hierarchical data structure, matching & aggregating data Practical computing session I – Part 2 Heike Wirth GESIS – Leibniz.
Lesson 12: Creating a Manual and Using Mail Merge.
Database revision.
Chapter Fourteen Access Databases and SQL Programming with Microsoft Visual Basic th Edition.
Today’s Goals Answer questions about homework and lecture 2 Understand what a query is Understand how to create simple queries using Microsoft Access 2007.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
1.Introduction to SPSS By: MHM. Nafas At HARDY ATI For HNDT Agriculture.
Introduction to KE EMu Unit objectives: Introduction to Windows Use the keyboard and mouse Use the desktop Open, move and resize a.
DTC Quantitative Methods Summary of some SPSS commands Weeks 1 & 2, January 2012.
Stretching Your Data Management Skills Chuck Humphrey University of Alberta Atlantic DLI Workshop 2003.
Access Query Design. IT Fundamentals2 Access Query Design The Query design screen provides a mechanism for selecting specific data from datafile(s) by:
® Microsoft Access 2010 Tutorial 9 Using Action Queries and Advanced Table Relationships.
Linking data resources Paul Lambert, University of Stirling Presentation to the Scottish Civil Society Data Partnership Project (S-CSDP), Webinar 3 on.
Survey Training Pack Session 16 – Custom Tables in SPSS.
Survey Training Pack Session 14 – Transferring CSPro, Access and Excel Files to SPSS.
Understanding SPSS II Workshop Series August 9, 2016.
1 SQL SERVER 2005 Express CE-105 SPRING 2007 Engr. Faisal ur Rehman.
An Interactive Tutorial for SPSS 10.0 for Windows©
Creating a database table
Tables & Relationships
Databases.
Understanding SPSS II Workshop Series July 19, 2017.
3.5 Databases Relationships.
COP 4540 Database Management
Practical Office 2007 Chapter 10
Basic Database Concepts
and Defining Table Relationships
Objectives Create an action query to create a table
Hierarchy of Data in a Database
Microsoft Office Illustrated Fundamentals
Access Lesson 1 Understanding Access Fundamentals
ECONOMETRICS ii – spring 2018
Dale Rhoda & Mary Kay Trimner Stata Conference 2018
Microsoft Office Access 2003
SPSS Overview COM 631/731.
Tutorial 1 – Introduction To Microsoft Access 2003
PHPMyAdmin.
Tutorial 1 – Introduction To Microsoft Access 2003
Introduction to Stata Spring 2017.
Microsoft Office Access 2003
Microsoft Office Access 2003
Please thank our sponsors!
Access Tutorial 1 Creating a Database
Lessons Vocabulary Access 2016.
Identification of Individuals and Households, 1
Lab 3 and HRP259 Lab and Combining (with SQL)
Combining (with SQL) HRP223 – 2012 November 05, 2011
RAHUL KAVI October 22, 2013 Day 20: Access Chapter 4 RAHUL KAVI October 22, 2013.
Microsoft Office Illustrated Introductory, Windows XP Edition
This is where R scripts will load
A Brief Introduction to Stata(2)
Microsoft Access Tips and Tricks
Tutorial 9 Using Action Queries and Advanced Table Relationships
Purchase Document Management
Little Man Computer Lesson 3 The times table
Presentation transcript:

Session 15 Merging Data in SPSS Survey Training Pack Session 15 Merging Data in SPSS

Side-to-Side Merge Merge Section 0 data and Section 1 data Both from same survey and at Household Level Each dataset has one record per HH Linked by primary key – combination of SITEID, BLOCKID, VILLID, HHID

Open Section 0 data File -> Open -> Data – select file Paste to save syntax

Sort Cases Files should be sorted before merge Data -> Sort Cases Sort by primary key – variables in correct order

Section 1 data Open and sort in the same way Each open file has unique dataset name (for SPSS reference – e.g. dataset1, dataset2, etc.) Commands run on “Active” dataset DATASET ACTIVATE DataSet2

Merge Procedure Move to Section0 dataset Data -> Merge Files -> Add Variables

Match cases on key variable

Syntax for Merge /FILE = * - refers to active dataset

Table Lookup Merge Data files with one-to-many relationship Example – household level data (Section 1) with fertiliser level data Each household can have one or more types of fertiliser (or none)

Fertiliser Level Data Highlighted cases both for same household

Table Lookup Merge Data -> Merge Files -> Add Variables Select File to merge Move key identifiers to Key Variables box

Keyed table “Keyed table” is on “one” side of “one-to-many” relationship

Syntax for Table lookup /TABLE – defines the keyed table

Summary Always merge by key identifier Sort files by key identifier before merge “keyed table” at the “one” side of a one-to-many relationship “many” can also be “none” – e.g. household not using fertiliser Careful interpretation needed – might need to aggregate