1 SPSS Tutorial 101: Import, Merge and Save Data Sets Dr. Daisy Dai Department of Medical Research.

Slides:



Advertisements
Similar presentations
11/2/2013 2:02:38 AM 5864_ER_FED 1 Importing Certificates into Lotus Notes R6.
Advertisements

TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
IQuote User Guide (1.2) Use your portal username and password
Datamax/MCL Off-Line License Activation Method
Follow the instruction to install the PC Suite from the SD card: 1.Go to the settings -> SD Card & phone storage -> Enable the mass storage only mode 2.Connect.
UNIVERSITY OF EDUCATION BY H.M.ISHTIAQ RAFIQUE. Domain Name Structure.
Getting Started with Microsoft Office 2007
BASIC SKILLS AND TOOLS USING ACCESS
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
HOW TO USE … SAMIEEE FOR VOLUNTEER POSITIONS WITH AUTOMATIC ACCESS.
1 Advanced with GMail A CYC Electives Module
Step-by-step instructions for adding a 658 tag to an existing MARC record.
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
XP New Perspectives on Microsoft Office Word 2003 Tutorial 6 1 Microsoft Office Word 2003 Tutorial 6 – Creating Form Letters and Mailing Labels.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Excel PivotTable List Feature Creating a PivotTable List Web Page Using Excel.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
0 - 0.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
1 After completing this lesson, you will be able to: Compose, address, and send messages. Format the body of a message. Attach a file to a message. Check.
Report Card P Only 4 files are exported in SAMS, but there are at least 7 tables could be exported in WebSAMS. Report Card P contains 4 functions: Extract,
ETS4 - What's new? - How to start? - Any questions?
How To Use Google Forms to Create A Test Quick Easy Self-Graded!! Instant Reports.
ABC Technology Project
Microsoft Access.
1 After completing this lesson, you will be able to: Create a database. Create a table using the Table Wizard. Create and modify a table in Design view.
Review Chapter 11 - Tables © 2010, 2006 South-Western, Cengage Learning.
Contents This guide is designed to help you perform key functions in CAR by providing high level descriptions of how they were done in SAM followed.
© S Haughton more than 3?
1 7912G IP PHONE LCD SCREEN TYPE OF PHONE SOFT KEYS NAVIGATION BUTTON FOOT STAND HAND SET VOLUME BUTTON  MENU  HOLD DIAL PAD.
OCFS Data Warehouse Basic Training
Created 11/06/2006 Revised 10/3/2014SPS Technology Department Mail Merge Using MS WORD and EXCEL 2010.
David Walker Ottawa TMG Users Group 15 March 2014.
Services Course Windows Live SkyDrive Participant Guide.
I-Cue Tests & Assessments Hastings Public School September 28 th, 2007.
DL Windows Software “Rules” Import a CSV File From Excel
1 Welcome to JCCAA Data base presentation Click box to see the DEMO 1.JCCAA Web Site 2. Member Login 3. My Acount 4. School DBA The end.
Semantic multimedia annotation tool Tutorial authors : Batatia, Piombo
Macromedia Dreamweaver MX 2004 – Design Professional Dreamweaver GETTING STARTED WITH.
Addition 1’s to 20.
IG Pro & CMS.
25 seconds left…...
Test B, 100 Subtraction Facts
11 = This is the fact family. You say: 8+3=11 and 3+8=11
Week 1.
Kuali Budget Construction Training Catherine Maddaford KBC Administrator.
So you want to create a PO Here’s how…. 1.Open RAPS and click the “Create” tab at the bottom of the screen.
1 Creating a Data Backup Oakland University University Relations Updated - June 2006.
SPSS Basics I Dr. Isaac Gusukuma Department of Social Work, Sociology and Criminal Justice Dr. Trent Terrell Department of Psychology NOTE: Accessing Workshop.
We will resume in: 25 Minutes.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® PowerPoint 2010 © 2011 The McGraw-Hill Companies,
Transferring your PST to your Home-Drive. NAVCOMTELSTA-GUAM N8 / LNSC.
Using the Import Accounting Line Feature You may enter accounting lines one by one in KFS or may enter multiple accounts at once using the Import Accounting.
Excel Lesson 17 Importing and Exporting Data Microsoft Office 2010 Advanced Cable / Morrison 1.
TM Graphical Monitoring Electronic Service Tools.
Use the buttons on the top to navigate through the presentation 1 PrevNext Menu.
TIDE Presentation Florida Standards Assessments 1 FSA Regional Trainings Updated 02/09/15.
LobbyPal Online Visitor Management System by Aquarius Soft
1 SPSS 202: Linear and Logistic Regression Using SPSS (Workshop) Dr. Daisy Dai Department of Medical Research.
SPSS 202: Data Management by SPSS (Workshop) Dr. Daisy Dai Department of Medical Research 1.
1 SPSS 201: Using SPSS to Perform Commonly Used Statistical Testing in Medical Research (Workshop) Dr. Daisy Dai Department of Medical Research.
Double –Click on the Netscape Icon on your desktop The following are a series of steps to help you get started with Netscape Composer.
Creating a Zip File with a Password. 1.Right Click on the File or Folder you want to Zip. 2.Choose “Add to Zip”
Logging Into Windows XP for first time (labs only!)
Presentation transcript:

1 SPSS Tutorial 101: Import, Merge and Save Data Sets Dr. Daisy Dai Department of Medical Research

2 Example: CDC Survey Data An allergy survey was conducted in 2005 and 2006 to children more than 1 year old. An allergy survey was conducted in 2005 and 2006 to children more than 1 year old. Two data sets, allergy questionnaire and demographic information, are saved in sas export format. Two data sets, allergy questionnaire and demographic information, are saved in sas export format.

3 Tasks Import these two SAS data files to SPSS and save them as SPSS data file. Import these two SAS data files to SPSS and save them as SPSS data file. Sort each data set by study ID. Sort each data set by study ID. Merge allergy variables and demographic variables. Merge allergy variables and demographic variables. Save new data set as SPSS data file. Save new data set as SPSS data file.

4 Log in SPSS CMH offers server version SPSS 18. Any employee can log in SPSS from your employee account. CMH offers server version SPSS 18. Any employee can log in SPSS from your employee account. Go to Start Go to Start ->Program ->Program ->Accessories ->Accessories -> Remote Desktop Connection

5 Log in SPSS In the prompted connection window, enter cmhterm. In the prompted connection window, enter cmhterm. Click Connect. Click Connect.

6 Log in SPSS In the Log On Window, enter your cmh user name and password. In the Log On Window, enter your cmh user name and password. Choose log on to CMH Choose log on to CMH Click OK. Click OK.

7 Task 1: Import Data We need to import two data sets to SPSS. We need to import two data sets to SPSS. Allergy qustionaire: aqq_d.xpt (xpt is sas export file) Allergy qustionaire: aqq_d.xpt (xpt is sas export file) Demographic information: demo_d.xpt Demographic information: demo_d.xpt Please note that SPSS is on server and data must be saved in shared drive such as u drive or w drive. You will not be able to find the file in SPSS if you save them on your local disk. Please note that SPSS is on server and data must be saved in shared drive such as u drive or w drive. You will not be able to find the file in SPSS if you save them on your local disk.

8 Task 1: Import Data Double click spss 18 icon on the screen. Double click spss 18 icon on the screen. In the task wizard, click Open an existing source. In the task wizard, click Open an existing source. Click OK. Click OK.

9 Task 1: Import Data Just in case wizard does not prompt, you can go to file Just in case wizard does not prompt, you can go to file -> Open -> Data

10 Task 1: Import Data Select the folder. Select the folder. Choose agg_d file. Choose agg_d file. Select xpt format. Select xpt format. Click Open. Click Open. Note: SPSS is compatible with other commonly used statistical and data management software packages. Excel, SAS, Access files are all convertible to SPSS. Note: SPSS is compatible with other commonly used statistical and data management software packages. Excel, SAS, Access files are all convertible to SPSS.

11 Task 1: Import Data Now the data is open. Now the data is open. You can see the data in “data View” tab. You can see the data in “data View” tab.

12 Task 1: Import Data The data structure, variable name, label, etc. are in “Variable View” tab. The data structure, variable name, label, etc. are in “Variable View” tab.

13 Task 2: Sort Data Variable to be sort: SEQN, that is, Respondent sequence number. Variable to be sort: SEQN, that is, Respondent sequence number.

14 Task 2: Sort Data Go to Data and select Sort Cases. Go to Data and select Sort Cases. On Sort Cases page, select the variable, Respondent sequence number. On Sort Cases page, select the variable, Respondent sequence number. Click on right arrow. Click on right arrow. Choose Ascending or Descending. Choose Ascending or Descending. Click OK. Click OK.

15 Practice Now let repeat this process by doing the following: Now let repeat this process by doing the following: Open the demographic data, demo_d.xpt. Open the demographic data, demo_d.xpt. Sort the data by variable, Respondent Sequence Number. Sort the data by variable, Respondent Sequence Number.

16 Task 3: Merge Two Data Sets Two data sets need to be linked by key variables. Two data sets need to be linked by key variables. In our case, the key variable is SEQN- Respondent Sequence Number. In our case, the key variable is SEQN- Respondent Sequence Number. Make sure the key variable has the same name and variable type in two data sets. Make sure the key variable has the same name and variable type in two data sets. Both data sets needs to be sorted by the key variable. Both data sets needs to be sorted by the key variable.

17 Task 3: Merge Two Data Sets Under any data set, go to Data Under any data set, go to Data -> Merge File -> Add Variables

18 Task 3: Merge Two Data Sets Choose the other data to add on. Choose the other data to add on. Note, this page will look different in SPSS 18. By all means, choose the other data set. Note, this page will look different in SPSS 18. By all means, choose the other data set.

19 Task 4: Save the New Data Go to File Go to File -> Save As… Select the folder. Select the folder. Create new file, MergedData. Create new file, MergedData. Choose SPSS data format. Choose SPSS data format. Click Save. Click Save.

20 Task 4: Save the New Data Go to Data Go to Data -> Merge File -> Add Variables

21 Thank you!