SlideShare a Scribd company logo
1 of 44
Presented by:
SUBODH KHANAL
Asst. Professor
Paklihawa Campus
Institute of Agriculture and Animal Science
S PS S
Statistical Package for the Social Sciences
SPSS is
 Asoftware package (program) used for statistical analysis.
 Long produced by SPSS Inc., (Incorporation )it was acquired by IBM in 2009
($ 1.2 billion in cash). The
SPSS Statistics.
current versions are officially named IBM
 widely used for statistical analysis in social science, market researchers, health
researchers,
data miners
survey companies, government, education researchers, marketing,
Why SPSS???
 Popular and has been used extensively in medical and biological
researches.
 More user-friendly (data analysis presentation) than other
statistical software (e.g., S-Plus, R, SAS) (Drop down menus not
commands!).
 Contain all statistical procedures which the researcher is in need
5
SPSS Windows has 3 windows:
Data Editor
Syntax Editor, which displays syntax files
Output: Viewer or Draft Viewer which displays the output files
The Data Editor has two parts:
Data View window, which displays data from the active file in spreadsheet format
Variable View window, which displays metadata or information about the data in the active file, such as
variable names and labels, value labels, formats, and missing value indicators.
Data analysis
Data editor has two “views”
 Data View Shows actual data values
 Variable View
variables.
Shows variable information for all
 Two tabs at on the bottom of the left hand side switching between
them.
Variables
Cases
9
SPSS Data View
10
SPSS Variable View
3 Variables
Breed
Milk yield
Udder size
1stCase 1= cow
under study
No. of cases = no. of
experimental units e.g.
individuals -animals
Variable View
create variable names and define the attributes of each variable.
Name name for each variable.
 only of letters, and the underbar (_)
 No pure numbers - space - dot .
Type
Width
Decimals
Label
specify type the variable. string
space the entries in the Data
or numeric type.
View will be for this variable.
decimal places will be shown for this variable in the Data View.
give a variable a label or title. makes all output much more readable.
Values specify numerical values for each category of categorical variable.
For example for the variable SEX 1 for Male, 2 for Females .
Missing specify values for a variable indicate missing data.
Columns spaces will be allocated for the variable in the Data View. different
from width in that width limits the number of spaces for the actual number.
Columns limits how many spaces will be visible in the Data View.
Align either left aligns, centers, or right aligns the entries for the variable.
Measure
Ascale variable
type of variable.
is a quantitative variable.
categorical variable where the categories have aAn ordinal variable
natural order such as
Anominal variable
poor, fair, good, better, best.
categorical variable no natural order to the categories,
such as male, female.
Entering and Saving Data
method
SPSS
SPSS Importing function
Cut and paste
Data entry
Directly into SPSS
.sav file
Excel spreadsheet
(.xls, .xlsx)
18
Figure 1. Data from Hell
19
Data from Heaven
 7.4.4 Example
 Consider the comparison of the mean body weights at the time of mating in one
group of ewes which have been flushed (put on a high plane of nutrition for 2–3
weeks prior to mating) and another group which have not. Each ewe in a random
sample of 54 ewes is randomly allocated to the flushed or control group. Table
7.2 shows the weights of two samples of 24 flushed and 30 control ewes.
 How many variables in this data set ?
 2 Variables:
 Ewe Weight (Quantitative)
 Group (Qualitative): 0;Flushed, 1;control
IMPORTING DATA INTO SPSS
• Direct data entry in SPSS making a template
• Data import from excel or any other kind of file
Direct data entry in SPSS
30
Importing data from Excel spreadsheet into SPSS.
In SPSS, go to:
File, Open, Data
Select Type of file (for example, Excel) you want to open
Select File name you want to open
DATA CLEANING
• Check for data entry and coding errors
• Wild code checking ( codes beyond the specified codes)
• Consistency checking
After DATA CLEANING……
• SORT function
• MERGE function
• RECODE
SORT FUNCTION
SELECT function
MERGE function
38
Data merging in SPSS (1)
1. Make sure that both files are sorted by Key variable in ascending order
39
Data merging in SPSS (2)
4. Select the dataset you want to merge into the working file.
40
Data merging in SPSS (3)
5. Click on Match cases on key variables in sorted files,
6. Click on Both files provide cases
7. Highlight ID in the excluded variables box, then click ► near key Variables
Data transformation
e.g. Bramins vs rest
janajati vs rest

More Related Content

What's hot (19)

SPSS an intro...
SPSS an intro...SPSS an intro...
SPSS an intro...
 
Introduction to spss 2
Introduction to spss 2Introduction to spss 2
Introduction to spss 2
 
Application of spss usha (1)
Application of spss usha (1)Application of spss usha (1)
Application of spss usha (1)
 
Spss beginners
Spss beginnersSpss beginners
Spss beginners
 
SPSS-SYNTAX
SPSS-SYNTAXSPSS-SYNTAX
SPSS-SYNTAX
 
introduction to spss
introduction to spssintroduction to spss
introduction to spss
 
Spss
SpssSpss
Spss
 
Introduction to spss
Introduction to spssIntroduction to spss
Introduction to spss
 
Data Creation and Importing in IBM SPSS
Data Creation and Importing in IBM SPSSData Creation and Importing in IBM SPSS
Data Creation and Importing in IBM SPSS
 
Uses of SPSS and Excel to analyze data
Uses of SPSS and Excel   to analyze dataUses of SPSS and Excel   to analyze data
Uses of SPSS and Excel to analyze data
 
Spss an introduction
Spss  an introductionSpss  an introduction
Spss an introduction
 
An introduction to spss
An introduction to spssAn introduction to spss
An introduction to spss
 
SPSS introduction Presentation
SPSS introduction Presentation SPSS introduction Presentation
SPSS introduction Presentation
 
SPSS
SPSSSPSS
SPSS
 
Spss as a research tool
Spss  as a research tool Spss  as a research tool
Spss as a research tool
 
An Introduction to SPSS
An Introduction to SPSSAn Introduction to SPSS
An Introduction to SPSS
 
Evaluation Spss
Evaluation SpssEvaluation Spss
Evaluation Spss
 
Spss
SpssSpss
Spss
 
Spss
SpssSpss
Spss
 

Similar to Introduction to spss

Spss by vijay ambast
Spss by vijay ambastSpss by vijay ambast
Spss by vijay ambastVijay Ambast
 
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
 
extra material for practicals in spss.pptx
extra material for practicals in spss.pptxextra material for practicals in spss.pptx
extra material for practicals in spss.pptxMrMuhammadAsif1
 
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
 
Beginners SPSS.ppt
Beginners SPSS.pptBeginners SPSS.ppt
Beginners SPSS.pptsayahuwaina
 
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
 
Defining Data in IBM SPSS Statistics
Defining Data in IBM SPSS StatisticsDefining Data in IBM SPSS Statistics
Defining Data in IBM SPSS StatisticsThiyagu K
 
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
 
Spps training presentation 1
Spps training presentation 1Spps training presentation 1
Spps training presentation 1Hassen Mohammed
 
spss-anintroduction-150704135929-lva1-app6892.ppt
spss-anintroduction-150704135929-lva1-app6892.pptspss-anintroduction-150704135929-lva1-app6892.ppt
spss-anintroduction-150704135929-lva1-app6892.pptFlorArquillano3
 

Similar to Introduction to spss (20)

Statrting spss
Statrting spssStatrting spss
Statrting spss
 
Spss by vijay ambast
Spss by vijay ambastSpss by vijay ambast
Spss by vijay ambast
 
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
 
extra material for practicals in spss.pptx
extra material for practicals in spss.pptxextra material for practicals in spss.pptx
extra material for practicals in spss.pptx
 
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
 
6967176.ppt
6967176.ppt6967176.ppt
6967176.ppt
 
Beginners SPSS.ppt
Beginners SPSS.pptBeginners SPSS.ppt
Beginners SPSS.ppt
 
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
 
Spss guidelines
Spss guidelinesSpss guidelines
Spss guidelines
 
Defining Data in IBM SPSS Statistics
Defining Data in IBM SPSS StatisticsDefining Data in IBM SPSS Statistics
Defining Data in IBM SPSS Statistics
 
Statistical Package for Social Science (SPSS)
Statistical Package for Social Science (SPSS)Statistical Package for Social Science (SPSS)
Statistical Package for Social Science (SPSS)
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
SPSS software
SPSS software SPSS software
SPSS software
 
spss.pptx
spss.pptxspss.pptx
spss.pptx
 
Spps training presentation 1
Spps training presentation 1Spps training presentation 1
Spps training presentation 1
 
Intro to SPSS.ppt
Intro to SPSS.pptIntro to SPSS.ppt
Intro to SPSS.ppt
 
spss-anintroduction-150704135929-lva1-app6892.ppt
spss-anintroduction-150704135929-lva1-app6892.pptspss-anintroduction-150704135929-lva1-app6892.ppt
spss-anintroduction-150704135929-lva1-app6892.ppt
 
Week 7 spss
Week 7 spssWeek 7 spss
Week 7 spss
 
SPSS FINAL.pdf
SPSS FINAL.pdfSPSS FINAL.pdf
SPSS FINAL.pdf
 

More from Subodh Khanal

Introduction to crop physiology
Introduction to crop physiology Introduction to crop physiology
Introduction to crop physiology Subodh Khanal
 
Botanicals ....a safe solution
Botanicals ....a safe solutionBotanicals ....a safe solution
Botanicals ....a safe solutionSubodh Khanal
 
Things to consider while writing scientific article
Things to consider while writing scientific articleThings to consider while writing scientific article
Things to consider while writing scientific articleSubodh Khanal
 
Dream for a better world from agroecological prespective
Dream for a better world from agroecological prespectiveDream for a better world from agroecological prespective
Dream for a better world from agroecological prespectiveSubodh Khanal
 
Sustainable Intensification of biodiversity in agroecosystem through conserva...
Sustainable Intensification of biodiversity in agroecosystem through conserva...Sustainable Intensification of biodiversity in agroecosystem through conserva...
Sustainable Intensification of biodiversity in agroecosystem through conserva...Subodh Khanal
 
Climate smart agriculture
Climate smart agricultureClimate smart agriculture
Climate smart agricultureSubodh Khanal
 
Summary of statistical tools used in spss
Summary of statistical tools used in spssSummary of statistical tools used in spss
Summary of statistical tools used in spssSubodh Khanal
 
Multivariate analysis
Multivariate analysisMultivariate analysis
Multivariate analysisSubodh Khanal
 
univariate and bivariate analysis in spss
univariate and bivariate analysis in spss univariate and bivariate analysis in spss
univariate and bivariate analysis in spss Subodh Khanal
 
Basic knowledge on statistics
Basic knowledge on statisticsBasic knowledge on statistics
Basic knowledge on statisticsSubodh Khanal
 
Class note of Introductory crop physiology
Class note of Introductory crop physiologyClass note of Introductory crop physiology
Class note of Introductory crop physiologySubodh Khanal
 
Level of measurement
Level of measurementLevel of measurement
Level of measurementSubodh Khanal
 
Medicinal plants of nepal
Medicinal plants of nepalMedicinal plants of nepal
Medicinal plants of nepalSubodh Khanal
 

More from Subodh Khanal (13)

Introduction to crop physiology
Introduction to crop physiology Introduction to crop physiology
Introduction to crop physiology
 
Botanicals ....a safe solution
Botanicals ....a safe solutionBotanicals ....a safe solution
Botanicals ....a safe solution
 
Things to consider while writing scientific article
Things to consider while writing scientific articleThings to consider while writing scientific article
Things to consider while writing scientific article
 
Dream for a better world from agroecological prespective
Dream for a better world from agroecological prespectiveDream for a better world from agroecological prespective
Dream for a better world from agroecological prespective
 
Sustainable Intensification of biodiversity in agroecosystem through conserva...
Sustainable Intensification of biodiversity in agroecosystem through conserva...Sustainable Intensification of biodiversity in agroecosystem through conserva...
Sustainable Intensification of biodiversity in agroecosystem through conserva...
 
Climate smart agriculture
Climate smart agricultureClimate smart agriculture
Climate smart agriculture
 
Summary of statistical tools used in spss
Summary of statistical tools used in spssSummary of statistical tools used in spss
Summary of statistical tools used in spss
 
Multivariate analysis
Multivariate analysisMultivariate analysis
Multivariate analysis
 
univariate and bivariate analysis in spss
univariate and bivariate analysis in spss univariate and bivariate analysis in spss
univariate and bivariate analysis in spss
 
Basic knowledge on statistics
Basic knowledge on statisticsBasic knowledge on statistics
Basic knowledge on statistics
 
Class note of Introductory crop physiology
Class note of Introductory crop physiologyClass note of Introductory crop physiology
Class note of Introductory crop physiology
 
Level of measurement
Level of measurementLevel of measurement
Level of measurement
 
Medicinal plants of nepal
Medicinal plants of nepalMedicinal plants of nepal
Medicinal plants of nepal
 

Recently uploaded

Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
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
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
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
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 

Recently uploaded (20)

Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
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
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
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
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 

Introduction to spss

  • 1. Presented by: SUBODH KHANAL Asst. Professor Paklihawa Campus Institute of Agriculture and Animal Science
  • 2. S PS S Statistical Package for the Social Sciences
  • 3. SPSS is  Asoftware package (program) used for statistical analysis.  Long produced by SPSS Inc., (Incorporation )it was acquired by IBM in 2009 ($ 1.2 billion in cash). The SPSS Statistics. current versions are officially named IBM  widely used for statistical analysis in social science, market researchers, health researchers, data miners survey companies, government, education researchers, marketing,
  • 4. Why SPSS???  Popular and has been used extensively in medical and biological researches.  More user-friendly (data analysis presentation) than other statistical software (e.g., S-Plus, R, SAS) (Drop down menus not commands!).  Contain all statistical procedures which the researcher is in need
  • 5. 5 SPSS Windows has 3 windows: Data Editor Syntax Editor, which displays syntax files Output: Viewer or Draft Viewer which displays the output files The Data Editor has two parts: Data View window, which displays data from the active file in spreadsheet format Variable View window, which displays metadata or information about the data in the active file, such as variable names and labels, value labels, formats, and missing value indicators.
  • 7. Data editor has two “views”  Data View Shows actual data values  Variable View variables. Shows variable information for all  Two tabs at on the bottom of the left hand side switching between them.
  • 11. 3 Variables Breed Milk yield Udder size 1stCase 1= cow under study No. of cases = no. of experimental units e.g. individuals -animals
  • 12.
  • 13. Variable View create variable names and define the attributes of each variable. Name name for each variable.  only of letters, and the underbar (_)  No pure numbers - space - dot . Type Width Decimals Label specify type the variable. string space the entries in the Data or numeric type. View will be for this variable. decimal places will be shown for this variable in the Data View. give a variable a label or title. makes all output much more readable.
  • 14. Values specify numerical values for each category of categorical variable. For example for the variable SEX 1 for Male, 2 for Females . Missing specify values for a variable indicate missing data. Columns spaces will be allocated for the variable in the Data View. different from width in that width limits the number of spaces for the actual number. Columns limits how many spaces will be visible in the Data View. Align either left aligns, centers, or right aligns the entries for the variable.
  • 15. Measure Ascale variable type of variable. is a quantitative variable. categorical variable where the categories have aAn ordinal variable natural order such as Anominal variable poor, fair, good, better, best. categorical variable no natural order to the categories, such as male, female.
  • 17. method SPSS SPSS Importing function Cut and paste Data entry Directly into SPSS .sav file Excel spreadsheet (.xls, .xlsx)
  • 18. 18 Figure 1. Data from Hell
  • 20.  7.4.4 Example  Consider the comparison of the mean body weights at the time of mating in one group of ewes which have been flushed (put on a high plane of nutrition for 2–3 weeks prior to mating) and another group which have not. Each ewe in a random sample of 54 ewes is randomly allocated to the flushed or control group. Table 7.2 shows the weights of two samples of 24 flushed and 30 control ewes.
  • 21.
  • 22.  How many variables in this data set ?
  • 23.  2 Variables:  Ewe Weight (Quantitative)  Group (Qualitative): 0;Flushed, 1;control
  • 24. IMPORTING DATA INTO SPSS • Direct data entry in SPSS making a template • Data import from excel or any other kind of file
  • 25. Direct data entry in SPSS
  • 26.
  • 27.
  • 28.
  • 29.
  • 30. 30 Importing data from Excel spreadsheet into SPSS. In SPSS, go to: File, Open, Data Select Type of file (for example, Excel) you want to open Select File name you want to open
  • 31. DATA CLEANING • Check for data entry and coding errors • Wild code checking ( codes beyond the specified codes) • Consistency checking
  • 32.
  • 33. After DATA CLEANING…… • SORT function • MERGE function • RECODE
  • 37.
  • 38. 38 Data merging in SPSS (1) 1. Make sure that both files are sorted by Key variable in ascending order
  • 39. 39 Data merging in SPSS (2) 4. Select the dataset you want to merge into the working file.
  • 40. 40 Data merging in SPSS (3) 5. Click on Match cases on key variables in sorted files, 6. Click on Both files provide cases 7. Highlight ID in the excluded variables box, then click ► near key Variables
  • 42.
  • 43.
  • 44. e.g. Bramins vs rest janajati vs rest