Title: Introduction to SPSS
1Introduction to SPSS
- Hsin-Hui Lin, Ph.D.
- Paul M. Montebello, Ph.D.
Policy Planning Research Division Department of
Childrens Services Tennessee State
2Contents
- 1. Getting Started
- 2. Data Management
- 3. Using the SPSS Help Function
31. Getting Started
- 1.1 What is SPSS?
- 1.2 Features of SPSS Base Module
- 1.3 Basic Concepts
41.1 What is SPSS?
- SPSS stands for Statistical Package for the
Social Sciences - Modular
- Integrated
- User-friendly
5Basic SPSS Functions
- Access Data
- Manage Data Files
- Visually Statistically Analyze Data
- Generate Reports
6SPSS Modules
- Base
- Regressions Models
- Advanced Models
- Tables
- Exact Tests
- Categories
- Trends
- Conjoint
- Missing Values
- Analysis
- Maps
71.2 Features of Base SPSS
- Friendly, Robust Program Language
- Data Access
- Data Management Manipulation
- Ability to Generate Various Reports
- Ability to Store Programs Reports
8SPSS System Requirements
- System Requirements (Base SPSS)
- Microsoft Windows 98, Me, NT4.0 or 2000
- Pentium-class processor
- 68 Mbytes HD space 64 MRam (min)
- SVGA monitor
91.3 Basic Concepts
- Typical SPSS Program Flow
- Data
- Syntax
- Output
10Typical SPSS Program Flow
- SPSS Programs are a series of steps
- There are two kinds of steps
11Data Step Functions
- Primary Functions of the Data Step
- Create SPSS data files from external files
- Modify, manipulate or enhance existing SPSS data
files - Generate data-related reports (e.g., audits)
- Transfer data
12Data Step Data View
13Data Step Variable View
14Syntax Step
15Output Step
16Workshop
- Getting Started Exploring SPSS
- Open data view
- Open syntax view
172. Data Management
- 2.1 Using Data Files in SPSS
- 2.2 The SPSS Data Editor
- 2.3 Changing Data Formats
- 2.4 Building a Data Dictionary
18Using Data Files in SPSS
- Exporting a Fixed-format Access File
- Step 1 Export Access table in an
SPSS-compatible format - Excel (.xls)
- dBASE, FoxPro (.dbf)
19Exporting an Access Table
20Using Data Files in SPSS
- Importing a Fixed-format Excel File
- Step 2 Open the file in SPSS
- Open SPSS
- Under datasheet view
- Click FILE / OPEN / DATA
21Opening a File in SPSS
22Opening a File in SPSS
23Opening a File in SPSS
24Using Data Files in SPSS
- Saving a Fixed-format SPSS File
- Step 3 Save the file in SPSS (.sav) format
25Workshop
- Export Access file to Excel. Then, import it to
SPSS - Get SPSS Training.dbs from C\DCS_SPSS_Training\Tr
aining Data folder - Export Custody One to SPSS
- Save the file to Custody One.sav
26Importing .dbf Files to SPSS
- The Current Version of Excel Has a Maximum
Capacity of 65,000 records - In Cases Where N gt 65K, Export the File to SPSS
in .dbf Format.
27Workshop
- Export Access file to .dbf. Then, import to SPSS
- Get SPSS Training.dbs from C\DCS_SPSS_Training\Tr
aining Data folder - Explore Client One to SPSS
- Save the file to Client One.sav
28Using Data Files in SPSS
- Importing a Fixed-format Text (.txt) File
- AFCARS Foster Care Data for Federal Government
Reporting.
29Opening a Text File in SPSS
30Opening a Text File in SPSS
31Opening a Text File in SPSS
32Opening a Text File in SPSS
33Opening a Text File in SPSS
34Opening a Text File in SPSS
35Opening a Text File in SPSS
36Workshop
- Import Sep 02 AFCARS file to SPSS
- Get Sept 2002.txt from C\DCS_SPSS_Training\Traini
ng Data folder - Import this file to SPSS
- Save the file to Sept02.sav
37Using Data Files in SPSS
- Importing a Delimited Text (.txt) File
- TNKIDS
- ext__person_demo.txt
38Importing a Delimited File
39Importing a Delimited File
40Importing a Delimited File
41Working with Variables in SPSS
- Rules for Variable Names
- Must be unique
- Length lt 8 characters
- Must begin with a letter
- May include _at_, , _ or
- Cannot end with a period
- Should not end with an underscore
- Cannot include blanks or special characters
42Working with Variables in SPSS
- Creating Variables Types
- Numeric Comma Dot
- Store up to 16 decimal places
- Data view displays only the defined N of decimals
- System uses complete value in all computations
- Date
- Delimiters slash, dash, space, comma or period
- Month values number, 3-character or full name
- Data stored internally from October 14, 1582
43Working with Variables in SPSS
- Creating Variables Types
- String
- Values are right-padded to the maximum width
- String variable with width 6
- No No
- No .NE. No
44Variable Type
45Working with Variables in SPSS
- Creating Variable Labels
- Variable label length lt 256
- FAMCODE AFCARS Family Structure Code
- Can be displayed in all output
46Working with Variables in SPSS
- Creating Value Labels
- Assigns a descriptor to each value
- Very useful with numeric codes that represent
non-numeric categories - FAMCODE 01, 02, 03, 04, 05
- 01 Married Couple
- 02 Unmarried Couple
- 03 Single Female
47Value Labels
48Working with Variables in SPSS
- Defining Missing Values
- Defines specified data values as user-missing
- Values can include
- lt 3 discrete values
- 998 Did Not Answer
- 997 Question Not Applicable
- Range of missing values
- Range, plus 1 missing values
49Levels of Measurement
- Nominal
- Alphanumeric variables whose values represent
categories that have no inherent metric - Ordinal
- Numeric variables whose values represent a
hierarchy or rank order - Level 1 Least Restrictive
- Level 4 Most Restrictive
- Interval/Ratio/Scale
- Numeric variables whose values possess real
mathematical properties
50Workshop
- Work on Client One.sav to define variable label
and values - Use Appendix 2 to complete the workshop
512.2 The SPSS Data Editor
- Change data values
- Cut, copy, and paste data values
- Add and delete cases
- Add and delete variables
- Change the order of variables
522.3 Changing Data Formats
- From string to numeric
- From numeric to string
- Change date format from dd-mmm-yyyy to mm/dd/yyyy
53Workshop
- Open Custody One.save
- Save into Custody Two.sav
- Change Custody_dt format from mm/dd/yyyy to
dd-mmm-yyyy - Add one numeric variable Cohort
- Add 3 cases
542.4 Building a Data Dictionary
55Display of Data Dictionary
563. Using the SPSS Help Function
57Using the Help Function
58Using the Help Function