SlideShare a Scribd company logo
1 of 16
Download to read offline
1
Introduction to SPSS (Data Entry, Reading, Matching)
Day 1, Session II &II
M. Amir Hossain, Ph.D.
January 17, 2016
Starting SPSS
• SPSS stands for Statistical Package for Social Science. It is
used to manage and analyze data. In most of the Windows
operating systems, SPSS can be started from the Start Menu.
• Steps: Click on the Start menu at the bottom-left corner of your
screen. Point the cursor to Programs, point to SPSS for
Windows, and then click on SPSS 16.0 for Windows.
START > Programs > SPSS for Windows > SPSS 16.0 for Windows
2
SPSS 16.0 for windows
will be opened.
If a dialog box appears, click
on Cancel or press the Esc
key from your keyboard. The
dialog box will disappear.
Now, the window you will
get is the data window
Starting SPSS
SPSS Menu and Syntax
 We can perform our tasks in SPSS by issuing various
commands / instructions. These instructions can be issued
either using Menu or using Syntax.
 Most of the commands can be issued from the menu, which is
apparently easier than the syntax. But syntax has the flexibility
when you deal with specific computation, customization, using
same command repeatedly and in many other situations.
3
Various Types of Windows in SPSS
There are three types of windows in SPSS. These are:
 Data window: Data window shows working data file and can be
used to enter new data or modify existing data. Data window
consists of a window which they call Variable View.
 Syntax window: Used to write and execute commands.
 Output window: Shows the output after a command is
successfully executed. It also shows possible error message if
the command is not recognized by SPSS.
Data Window
4
Syntax Window
Syntax window is used
to write various SPSS
commands
To create a new syntax
file, follow the steps:
•Click on File menu
from the data window
•Point to New
•Then click on Syntax.
Output Window
5
Various Types of FILES in SPSS
File Type Extension Purpose
SPSS data file
or SPSS type file or
Data file
SAV Stores data along with the descriptive information of
each variables and their values.
SPSS syntax file /
Command file
SPS Contains various commands and instructions to perform
various tasks. Sometimes it contains inline data.
Output file SPO Contains outputs / results generated after executing
commands through menu or syntax.
Raw Data file DAT / TXT ASCII data file. Contains data/information in raw
(unstructured) format
Excel file XLS Microsoft Excel file. Usually contains data.
Opening SPSS data files
Steps:
• First open SPSS data window.
• Then click on the File menu at the top left
corner of your screen. Point the cursor to
Open, point to Data.
File > Open> Data>Path of data file
6
Data Entry in SPSS
• Data can be entered in SPSS data window or in Excel.
• Data Entry Using SPSS
• Step 1. Notice on the bottom left hand corner of the screen
that you can access either the Data View or Variable View
windows. To view one window or the other, simply click on
it. For now, in establishing the variables and their
characteristics, you should work in the Variable View
window.
Data Entry in SPSS
Step 2. In the space for Name, type the desired variable name.
Variable Names
 Each variable must have a unique name. Variable names are stored in
the dictionary of an SPSS-format data file or working data file.
Observe the following rules when establishing variable names or
referring to variables by their names on commands:
 The name must begin with a letter. The remaining characters can be
any letter, any digit, a period, or the symbols @, #, _, or $.
7
Data Entry in SPSS
Variable Names
 The period, underscore, and the characters $, #, and @ can be used
within variable names. For example, A._$@#1 is a valid variable
name.
 Variable names cannot end with a period since the period may be
interpreted as a command terminator.
 Variable names ending in underscores should be avoided, since such
names may conflict with names of variables automatically created by
a number of commands—for example, YEAR_ and DATE_ created by
the DATE command.
Data Entry in SPSS
ALL AND BY EQ GE GT LE LT NE NOT OR TO WITH
Variable Names
 Blanks and special characters (for example, !, ?, ’, and *) cannot be
used.
 Each variable name must be unique; duplication is not allowed.
Variable names are not case sensitive.
 Reserved keywords cannot be used as variable names. Reserved
keywords are
8
Data Entry in SPSS
Step 3.
Press the Tab key and you will notice that SPSS
assigns default values to all of the settings. You
should go through the relevant column for that
particular variable. Clicking on a column will often
expose a shaded area. You can click on this to
pursue your options.
Data Entry in SPSS
Variable View Default
Type: Allows you to define the type of variable. Other
formats are comma, dot, dollar, string.
numeric
Width: Total number of characters (Maximum 40) 8
Decimals: Number of characters beyond the decimal point 2
Label: Allows you to list a more extensive label for your variable.
Eight character variable names are difficult to remember, and we
recommend that you always exercise the option of listing a more
descriptive label. Variable labels can be up to 256 characters
long.
none
9
Data Entry in SPSS
Variable View Default
Value: Allows you to provide labels for the various levels of a
variable. This is particularly useful if your data file uses numeric
codes to represent non-numeric categories. For example, Sex has
two types—male or female. We may code male as ‘1’ and female
as ‘2’. These are called values of the variable Sex.
none
Missing Values: Enables you to designate certain scores as
missing.
none
Align: Allows you to determine the alignment of your column right
Measure: Allows you to determine the kind of scale for that
particular variable
scale
Data Entry in SPSS
Create as many variables as necessary
10
Data Entry using Excel
 Open MS Excel program
[Start > Programs > Microsoft Excel]
 In the worksheet, write the variable names
(following naming convention) column wise
 Enter data
 Save the file to your folder.
Importing Excel data file in SPSS data window
 In the SPSS data window, follow
File > Open > Data
A new window will appear prompting
you to choose the File type to open.
Choose Excel (*.xls) type file
Locate your folder where you saved
the file.
Click Open
A new window will appear like this
figure:
11
Importing Excel data file in SPSS data window
 Choose appropriate worksheet and data range to import
data.
 By default, all the data will be imported unless otherwise
stated.
 If you like to import a particular section of data and
variables, indicate them in the Range field.
 Suppose, you want to import only two variables ID and
Gender. Then, type A1:B6 in the range field
MERGING DATA FILES
Add Cases:
Add Cases merges the working data file with a second
data file that contains the same variables but different
cases. The two files must be identical in number of
variables and variable names. For example, you might
record the same information for customers in two
different sales regions and maintain the data for each
region in separate files.
12
MERGING DATA FILES
Open one of the data files.
The cases from this file will appear first
in the new, merged data file.
From the menus choose:
You will then be prompted to select the
file that you wish to merge. Simply
double click on that file, and the
resulting dialog box will look something
like this:
Data>Merge files>Add cases
To Merge Files with the Same Variables and Different Cases
MERGING DATA FILES
Add Variables:
Add Variables merges the working data file with an
external data file that contains the same cases but
different variables. For example, you might want to merge
a data file that contains pre-test results with one that
contains post-test results.
13
MERGING DATA FILES
Add Variables:
 Cases must be sorted in the same order in both data files.
 If one or more key variables are used to match cases, the two
data files must be sorted by ascending order of the key
variable(s).
 Variable names in the second data file that duplicate variable
names in the working data file are excluded by default
because Add Variables assumes that these variables contain
duplicate information
MERGING DATA FILES
Open one of the data files.
The cases from this file will appear first
in the new, merged data file.
From the menus choose:
You will then be prompted to select the
file that you wish to merge. Simply
double click on that file, and the
resulting dialog box will look something
like this:
Data>Merge files>Add variables
To Merge Files with the Same Cases but Different Variables
14
MERGING DATA FILES
 Select Key Variables. We are matching cases on key variables. In this
example, we are using "subject" as the key variable. This basically
means that values for variables from both data files, will be matched
for each specific case.
 Select the variables from the external file variables (+) on the
Excluded Variables list.
 Select Match cases on key variables in sorted files.
 Add the variables to the Key Variables list.
To Merge Files with the Same Cases but Different Variables
MERGING DATA FILES
ID Age Sex GPA
1 17 M 5
2 16 F 5
3 17 F 4.75
4 18 M 5
5 19 M 4.5
Enter the information in the SPSS data
window with the variable labels for
ID=‘Identification number’, Age=’Age of
the student’, Sex=’Gender of the
student’ and GPA =’Grade point
average’. The value labels for the
variable Sex considering M=Male and
F=female.
Save the SPSS data file as Student_1.
Suppose a teacher has information of 5 students as following:
15
MERGING DATA FILES
ID Age Sex GPA
6 18 M 5
7 16 F 4.5
8 17 F 4.75
Enter the information in the SPSS data
window with the variable labels for
ID=‘Identification number’, Age=’Age of
the student’, Sex=’Gender of the
student’ and GPA =’Grade point
average’. The value labels for the
variable Sex considering M=Male and
F=female.
Save the SPSS data file as Student_2.
After few days he get information of another 3 students:
MERGING DATA FILES
Enter the information in the SPSS data
window with the variable labels for
ID=‘Identification number’, Marks=’Marks
obtained by the students’.
Save the SPSS data file as Student_3
After final exam, the marks of the 8
students obtained in the math.
course are given in the table:
ID Marks
1 80
2 90
3 95
4 85
5 90
6 87
7 92
8 83
16
MERGING DATA FILES
Exercise: Add Cases
Add the new 3 students to the old 5 students and
save the SPSS data file as Student.
Exercise: Add Variables
Add the variable ‘Marks’ to the previous data file
named Student and save it.

More Related Content

What's hot

Data Display and Summary
Data Display and SummaryData Display and Summary
Data Display and SummaryDrZahid Khan
 
Using Spss Transforming Variable - Compute
Using Spss Transforming Variable - ComputeUsing Spss Transforming Variable - Compute
Using Spss Transforming Variable - ComputeDr Ali Yusob Md Zain
 
Introduction To SPSS
Introduction To SPSSIntroduction To SPSS
Introduction To SPSSPhi Jack
 
Spss lecture notes
Spss lecture notesSpss lecture notes
Spss lecture notesDavid mbwiga
 
Data Coding and Data Management using SPSS
Data Coding and Data Management using SPSSData Coding and Data Management using SPSS
Data Coding and Data Management using SPSSMelba Shaya Sweety
 
Introduction to Business Statistics
Introduction to Business StatisticsIntroduction to Business Statistics
Introduction to Business StatisticsAtiq Rehman
 
Spss
SpssSpss
SpssTech_MX
 
Basics stat ppt-types of data
Basics stat ppt-types of dataBasics stat ppt-types of data
Basics stat ppt-types of dataFarhana Shaheen
 
Descriptive Statistics - SPSS
Descriptive Statistics - SPSSDescriptive Statistics - SPSS
Descriptive Statistics - SPSSAbdelrahman Alkilani
 
Data analysis using spss
Data analysis using spssData analysis using spss
Data analysis using spssMuhammad Ibrahim
 
(Manual spss)
(Manual spss)(Manual spss)
(Manual spss)Enas Ahmed
 
What Is the Use of SPSS in Data Analysis
What Is the Use of SPSS in Data AnalysisWhat Is the Use of SPSS in Data Analysis
What Is the Use of SPSS in Data AnalysisSPSSResearch
 
An introduction to spss
An introduction to spssAn introduction to spss
An introduction to spsszeeshanwrch
 
Statistical Package for Social Science (SPSS)
Statistical Package for Social Science (SPSS)Statistical Package for Social Science (SPSS)
Statistical Package for Social Science (SPSS)sspink
 

What's hot (20)

Data Display and Summary
Data Display and SummaryData Display and Summary
Data Display and Summary
 
Using Spss Transforming Variable - Compute
Using Spss Transforming Variable - ComputeUsing Spss Transforming Variable - Compute
Using Spss Transforming Variable - Compute
 
Spss
SpssSpss
Spss
 
Basic concept of statistics
Basic concept of statisticsBasic concept of statistics
Basic concept of statistics
 
Introduction To SPSS
Introduction To SPSSIntroduction To SPSS
Introduction To SPSS
 
Data entry in Excel and SPSS
Data entry in Excel and SPSS Data entry in Excel and SPSS
Data entry in Excel and SPSS
 
Introduction To SPSS
Introduction To SPSSIntroduction To SPSS
Introduction To SPSS
 
Spss lecture notes
Spss lecture notesSpss lecture notes
Spss lecture notes
 
Data Coding and Data Management using SPSS
Data Coding and Data Management using SPSSData Coding and Data Management using SPSS
Data Coding and Data Management using SPSS
 
SPS intro
SPS introSPS intro
SPS intro
 
Introduction to Business Statistics
Introduction to Business StatisticsIntroduction to Business Statistics
Introduction to Business Statistics
 
Spss
SpssSpss
Spss
 
Basics stat ppt-types of data
Basics stat ppt-types of dataBasics stat ppt-types of data
Basics stat ppt-types of data
 
Descriptive Statistics - SPSS
Descriptive Statistics - SPSSDescriptive Statistics - SPSS
Descriptive Statistics - SPSS
 
Data analysis using spss
Data analysis using spssData analysis using spss
Data analysis using spss
 
(Manual spss)
(Manual spss)(Manual spss)
(Manual spss)
 
What Is the Use of SPSS in Data Analysis
What Is the Use of SPSS in Data AnalysisWhat Is the Use of SPSS in Data Analysis
What Is the Use of SPSS in Data Analysis
 
Introduction to spss
Introduction to spssIntroduction to spss
Introduction to spss
 
An introduction to spss
An introduction to spssAn introduction to spss
An introduction to spss
 
Statistical Package for Social Science (SPSS)
Statistical Package for Social Science (SPSS)Statistical Package for Social Science (SPSS)
Statistical Package for Social Science (SPSS)
 

Similar to SPSS

Spss data capturing training
Spss data capturing trainingSpss data capturing training
Spss data capturing trainingMarotaAphane
 
DATA HANDLING FOR SPSS
DATA HANDLING FOR SPSSDATA HANDLING FOR SPSS
DATA HANDLING FOR SPSSIAEME Publication
 
Spss by vijay ambast
Spss by vijay ambastSpss by vijay ambast
Spss by vijay ambastVijay Ambast
 
toolkit13_sec9.pdf
toolkit13_sec9.pdftoolkit13_sec9.pdf
toolkit13_sec9.pdfAfrim Alili
 
Spss basics tutorial
Spss basics tutorialSpss basics tutorial
Spss basics tutorialsantoshranjan77
 
Spss course session-II
Spss course session-IISpss course session-II
Spss course session-IIaltleo
 
Spss course session-II
Spss course session-IISpss course session-II
Spss course session-IIaltleo
 
Beginners SPSS.ppt
Beginners SPSS.pptBeginners SPSS.ppt
Beginners SPSS.pptsayahuwaina
 
Chapter -1.pptx0p0p0pppopooopopppp0ppoooooo
Chapter -1.pptx0p0p0pppopooopopppp0ppooooooChapter -1.pptx0p0p0pppopooopopppp0ppoooooo
Chapter -1.pptx0p0p0pppopooopopppp0ppoooooobizuayehuadmasu1
 
Spss chapter1
Spss chapter1Spss chapter1
Spss chapter1Kritika Jain
 
BRM_Data Analysis, Interpretation and Reporting Part I.ppt
BRM_Data Analysis, Interpretation and Reporting Part I.pptBRM_Data Analysis, Interpretation and Reporting Part I.ppt
BRM_Data Analysis, Interpretation and Reporting Part I.pptAbdifatahAhmedHurre
 
1 Introduction to SPSS.pdf
1 Introduction to SPSS.pdf1 Introduction to SPSS.pdf
1 Introduction to SPSS.pdfYomif3
 
Introduction to Statistical package of social sciences
Introduction to Statistical package of social sciencesIntroduction to Statistical package of social sciences
Introduction to Statistical package of social sciencesprachisachdev4
 

Similar to SPSS (20)

Spss data capturing training
Spss data capturing trainingSpss data capturing training
Spss data capturing training
 
Digital tools
Digital toolsDigital tools
Digital tools
 
DATA HANDLING FOR SPSS
DATA HANDLING FOR SPSSDATA HANDLING FOR SPSS
DATA HANDLING FOR SPSS
 
SPSS software
SPSS software SPSS software
SPSS software
 
SPSS GUIDE
SPSS GUIDESPSS GUIDE
SPSS GUIDE
 
Spss by vijay ambast
Spss by vijay ambastSpss by vijay ambast
Spss by vijay ambast
 
toolkit13_sec9.pdf
toolkit13_sec9.pdftoolkit13_sec9.pdf
toolkit13_sec9.pdf
 
SPSS: Quick Look
SPSS: Quick LookSPSS: Quick Look
SPSS: Quick Look
 
Spss basics tutorial
Spss basics tutorialSpss basics tutorial
Spss basics tutorial
 
Spss course session-II
Spss course session-IISpss course session-II
Spss course session-II
 
Spss course session-II
Spss course session-IISpss course session-II
Spss course session-II
 
Beginners SPSS.ppt
Beginners SPSS.pptBeginners SPSS.ppt
Beginners SPSS.ppt
 
Chapter -1.pptx0p0p0pppopooopopppp0ppoooooo
Chapter -1.pptx0p0p0pppopooopopppp0ppooooooChapter -1.pptx0p0p0pppopooopopppp0ppoooooo
Chapter -1.pptx0p0p0pppopooopopppp0ppoooooo
 
Spss chapter1
Spss chapter1Spss chapter1
Spss chapter1
 
Chapter -1.pptx
Chapter -1.pptxChapter -1.pptx
Chapter -1.pptx
 
BRM_Data Analysis, Interpretation and Reporting Part I.ppt
BRM_Data Analysis, Interpretation and Reporting Part I.pptBRM_Data Analysis, Interpretation and Reporting Part I.ppt
BRM_Data Analysis, Interpretation and Reporting Part I.ppt
 
Access ppt
Access ppt Access ppt
Access ppt
 
1 Introduction to SPSS.pdf
1 Introduction to SPSS.pdf1 Introduction to SPSS.pdf
1 Introduction to SPSS.pdf
 
Spss guidelines
Spss guidelinesSpss guidelines
Spss guidelines
 
Introduction to Statistical package of social sciences
Introduction to Statistical package of social sciencesIntroduction to Statistical package of social sciences
Introduction to Statistical package of social sciences
 

More from Abir Hossain

Communication
CommunicationCommunication
CommunicationAbir Hossain
 
Disciplinary action
Disciplinary actionDisciplinary action
Disciplinary actionAbir Hossain
 
Communication process
Communication processCommunication process
Communication processAbir Hossain
 
Barrier of women entrepreneurs pdf
Barrier of women entrepreneurs pdfBarrier of women entrepreneurs pdf
Barrier of women entrepreneurs pdfAbir Hossain
 
Srq costing exercise-solving
Srq costing exercise-solvingSrq costing exercise-solving
Srq costing exercise-solvingAbir Hossain
 
Srq costing exercise problem
Srq costing exercise problemSrq costing exercise problem
Srq costing exercise problemAbir Hossain
 
Srq on decision making
Srq on decision makingSrq on decision making
Srq on decision makingAbir Hossain
 
Srq 5 p analysis
Srq 5 p analysisSrq 5 p analysis
Srq 5 p analysisAbir Hossain
 
Program schedule
Program scheduleProgram schedule
Program scheduleAbir Hossain
 
Concept note bpp
Concept note bppConcept note bpp
Concept note bppAbir Hossain
 
Case study swot analysis
Case study swot analysisCase study swot analysis
Case study swot analysisAbir Hossain
 
Case study pecs
Case study pecsCase study pecs
Case study pecsAbir Hossain
 
Bankable business proposal format
Bankable business proposal formatBankable business proposal format
Bankable business proposal formatAbir Hossain
 
BSTI Certification Course
BSTI Certification Course BSTI Certification Course
BSTI Certification Course Abir Hossain
 
BSTI Certification Course
BSTI Certification Course BSTI Certification Course
BSTI Certification Course Abir Hossain
 
Cm licensening system
Cm licensening systemCm licensening system
Cm licensening systemAbir Hossain
 
010 effective presentations skills
010 effective presentations skills010 effective presentations skills
010 effective presentations skillsAbir Hossain
 
Srq decision making
Srq decision makingSrq decision making
Srq decision makingAbir Hossain
 

More from Abir Hossain (20)

Communication
CommunicationCommunication
Communication
 
Disciplinary action
Disciplinary actionDisciplinary action
Disciplinary action
 
Communication process
Communication processCommunication process
Communication process
 
Barrier of women entrepreneurs pdf
Barrier of women entrepreneurs pdfBarrier of women entrepreneurs pdf
Barrier of women entrepreneurs pdf
 
Srq costing exercise-solving
Srq costing exercise-solvingSrq costing exercise-solving
Srq costing exercise-solving
 
Srq costing exercise problem
Srq costing exercise problemSrq costing exercise problem
Srq costing exercise problem
 
Srq on decision making
Srq on decision makingSrq on decision making
Srq on decision making
 
Srq 5 p analysis
Srq 5 p analysisSrq 5 p analysis
Srq 5 p analysis
 
Program schedule
Program scheduleProgram schedule
Program schedule
 
Pre test
Pre testPre test
Pre test
 
Post test
Post testPost test
Post test
 
Concept note bpp
Concept note bppConcept note bpp
Concept note bpp
 
Case study swot analysis
Case study swot analysisCase study swot analysis
Case study swot analysis
 
Case study pecs
Case study pecsCase study pecs
Case study pecs
 
Bankable business proposal format
Bankable business proposal formatBankable business proposal format
Bankable business proposal format
 
BSTI Certification Course
BSTI Certification Course BSTI Certification Course
BSTI Certification Course
 
BSTI Certification Course
BSTI Certification Course BSTI Certification Course
BSTI Certification Course
 
Cm licensening system
Cm licensening systemCm licensening system
Cm licensening system
 
010 effective presentations skills
010 effective presentations skills010 effective presentations skills
010 effective presentations skills
 
Srq decision making
Srq decision makingSrq decision making
Srq decision making
 

Recently uploaded

Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 

Recently uploaded (20)

Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 

SPSS

  • 1. 1 Introduction to SPSS (Data Entry, Reading, Matching) Day 1, Session II &II M. Amir Hossain, Ph.D. January 17, 2016 Starting SPSS • SPSS stands for Statistical Package for Social Science. It is used to manage and analyze data. In most of the Windows operating systems, SPSS can be started from the Start Menu. • Steps: Click on the Start menu at the bottom-left corner of your screen. Point the cursor to Programs, point to SPSS for Windows, and then click on SPSS 16.0 for Windows. START > Programs > SPSS for Windows > SPSS 16.0 for Windows
  • 2. 2 SPSS 16.0 for windows will be opened. If a dialog box appears, click on Cancel or press the Esc key from your keyboard. The dialog box will disappear. Now, the window you will get is the data window Starting SPSS SPSS Menu and Syntax  We can perform our tasks in SPSS by issuing various commands / instructions. These instructions can be issued either using Menu or using Syntax.  Most of the commands can be issued from the menu, which is apparently easier than the syntax. But syntax has the flexibility when you deal with specific computation, customization, using same command repeatedly and in many other situations.
  • 3. 3 Various Types of Windows in SPSS There are three types of windows in SPSS. These are:  Data window: Data window shows working data file and can be used to enter new data or modify existing data. Data window consists of a window which they call Variable View.  Syntax window: Used to write and execute commands.  Output window: Shows the output after a command is successfully executed. It also shows possible error message if the command is not recognized by SPSS. Data Window
  • 4. 4 Syntax Window Syntax window is used to write various SPSS commands To create a new syntax file, follow the steps: •Click on File menu from the data window •Point to New •Then click on Syntax. Output Window
  • 5. 5 Various Types of FILES in SPSS File Type Extension Purpose SPSS data file or SPSS type file or Data file SAV Stores data along with the descriptive information of each variables and their values. SPSS syntax file / Command file SPS Contains various commands and instructions to perform various tasks. Sometimes it contains inline data. Output file SPO Contains outputs / results generated after executing commands through menu or syntax. Raw Data file DAT / TXT ASCII data file. Contains data/information in raw (unstructured) format Excel file XLS Microsoft Excel file. Usually contains data. Opening SPSS data files Steps: • First open SPSS data window. • Then click on the File menu at the top left corner of your screen. Point the cursor to Open, point to Data. File > Open> Data>Path of data file
  • 6. 6 Data Entry in SPSS • Data can be entered in SPSS data window or in Excel. • Data Entry Using SPSS • Step 1. Notice on the bottom left hand corner of the screen that you can access either the Data View or Variable View windows. To view one window or the other, simply click on it. For now, in establishing the variables and their characteristics, you should work in the Variable View window. Data Entry in SPSS Step 2. In the space for Name, type the desired variable name. Variable Names  Each variable must have a unique name. Variable names are stored in the dictionary of an SPSS-format data file or working data file. Observe the following rules when establishing variable names or referring to variables by their names on commands:  The name must begin with a letter. The remaining characters can be any letter, any digit, a period, or the symbols @, #, _, or $.
  • 7. 7 Data Entry in SPSS Variable Names  The period, underscore, and the characters $, #, and @ can be used within variable names. For example, A._$@#1 is a valid variable name.  Variable names cannot end with a period since the period may be interpreted as a command terminator.  Variable names ending in underscores should be avoided, since such names may conflict with names of variables automatically created by a number of commands—for example, YEAR_ and DATE_ created by the DATE command. Data Entry in SPSS ALL AND BY EQ GE GT LE LT NE NOT OR TO WITH Variable Names  Blanks and special characters (for example, !, ?, ’, and *) cannot be used.  Each variable name must be unique; duplication is not allowed. Variable names are not case sensitive.  Reserved keywords cannot be used as variable names. Reserved keywords are
  • 8. 8 Data Entry in SPSS Step 3. Press the Tab key and you will notice that SPSS assigns default values to all of the settings. You should go through the relevant column for that particular variable. Clicking on a column will often expose a shaded area. You can click on this to pursue your options. Data Entry in SPSS Variable View Default Type: Allows you to define the type of variable. Other formats are comma, dot, dollar, string. numeric Width: Total number of characters (Maximum 40) 8 Decimals: Number of characters beyond the decimal point 2 Label: Allows you to list a more extensive label for your variable. Eight character variable names are difficult to remember, and we recommend that you always exercise the option of listing a more descriptive label. Variable labels can be up to 256 characters long. none
  • 9. 9 Data Entry in SPSS Variable View Default Value: Allows you to provide labels for the various levels of a variable. This is particularly useful if your data file uses numeric codes to represent non-numeric categories. For example, Sex has two types—male or female. We may code male as ‘1’ and female as ‘2’. These are called values of the variable Sex. none Missing Values: Enables you to designate certain scores as missing. none Align: Allows you to determine the alignment of your column right Measure: Allows you to determine the kind of scale for that particular variable scale Data Entry in SPSS Create as many variables as necessary
  • 10. 10 Data Entry using Excel  Open MS Excel program [Start > Programs > Microsoft Excel]  In the worksheet, write the variable names (following naming convention) column wise  Enter data  Save the file to your folder. Importing Excel data file in SPSS data window  In the SPSS data window, follow File > Open > Data A new window will appear prompting you to choose the File type to open. Choose Excel (*.xls) type file Locate your folder where you saved the file. Click Open A new window will appear like this figure:
  • 11. 11 Importing Excel data file in SPSS data window  Choose appropriate worksheet and data range to import data.  By default, all the data will be imported unless otherwise stated.  If you like to import a particular section of data and variables, indicate them in the Range field.  Suppose, you want to import only two variables ID and Gender. Then, type A1:B6 in the range field MERGING DATA FILES Add Cases: Add Cases merges the working data file with a second data file that contains the same variables but different cases. The two files must be identical in number of variables and variable names. For example, you might record the same information for customers in two different sales regions and maintain the data for each region in separate files.
  • 12. 12 MERGING DATA FILES Open one of the data files. The cases from this file will appear first in the new, merged data file. From the menus choose: You will then be prompted to select the file that you wish to merge. Simply double click on that file, and the resulting dialog box will look something like this: Data>Merge files>Add cases To Merge Files with the Same Variables and Different Cases MERGING DATA FILES Add Variables: Add Variables merges the working data file with an external data file that contains the same cases but different variables. For example, you might want to merge a data file that contains pre-test results with one that contains post-test results.
  • 13. 13 MERGING DATA FILES Add Variables:  Cases must be sorted in the same order in both data files.  If one or more key variables are used to match cases, the two data files must be sorted by ascending order of the key variable(s).  Variable names in the second data file that duplicate variable names in the working data file are excluded by default because Add Variables assumes that these variables contain duplicate information MERGING DATA FILES Open one of the data files. The cases from this file will appear first in the new, merged data file. From the menus choose: You will then be prompted to select the file that you wish to merge. Simply double click on that file, and the resulting dialog box will look something like this: Data>Merge files>Add variables To Merge Files with the Same Cases but Different Variables
  • 14. 14 MERGING DATA FILES  Select Key Variables. We are matching cases on key variables. In this example, we are using "subject" as the key variable. This basically means that values for variables from both data files, will be matched for each specific case.  Select the variables from the external file variables (+) on the Excluded Variables list.  Select Match cases on key variables in sorted files.  Add the variables to the Key Variables list. To Merge Files with the Same Cases but Different Variables MERGING DATA FILES ID Age Sex GPA 1 17 M 5 2 16 F 5 3 17 F 4.75 4 18 M 5 5 19 M 4.5 Enter the information in the SPSS data window with the variable labels for ID=‘Identification number’, Age=’Age of the student’, Sex=’Gender of the student’ and GPA =’Grade point average’. The value labels for the variable Sex considering M=Male and F=female. Save the SPSS data file as Student_1. Suppose a teacher has information of 5 students as following:
  • 15. 15 MERGING DATA FILES ID Age Sex GPA 6 18 M 5 7 16 F 4.5 8 17 F 4.75 Enter the information in the SPSS data window with the variable labels for ID=‘Identification number’, Age=’Age of the student’, Sex=’Gender of the student’ and GPA =’Grade point average’. The value labels for the variable Sex considering M=Male and F=female. Save the SPSS data file as Student_2. After few days he get information of another 3 students: MERGING DATA FILES Enter the information in the SPSS data window with the variable labels for ID=‘Identification number’, Marks=’Marks obtained by the students’. Save the SPSS data file as Student_3 After final exam, the marks of the 8 students obtained in the math. course are given in the table: ID Marks 1 80 2 90 3 95 4 85 5 90 6 87 7 92 8 83
  • 16. 16 MERGING DATA FILES Exercise: Add Cases Add the new 3 students to the old 5 students and save the SPSS data file as Student. Exercise: Add Variables Add the variable ‘Marks’ to the previous data file named Student and save it.