SlideShare a Scribd company logo
SPSS data entry
Training session 3
GAP Toolkit 5
Training in basic drug abuse data management
and analysis
Objectives
• To describe opening and closing SPSS
• To introduce the look and structure of SPSS
• To introduce the data entry windows: Data View and
Variable View
• To outline the components necessary to define a
variable
• To introduce the SPSS online tutorial
Uses for SPSS
• Data management
• Data analysis
Data management
• Defining variables
• Coding values
• Entering and editing data
• Creating new variables
• Recoding variables
• Selecting cases
Data analysis
• Univariate statistics
• Bivariate statistics
• Multivariate statistics
Opening SPSS
• Double click the SPSS icon on the desktop
OR
• Start/Programs/SPSS for Windows/SPSS**
• The following introductory screen should appear:
The Data View window
View tabs
Status bar/boxes
Cell edit field
Cell information
Data View
• Rows represent cases or observations, that is, the
objects on which data have been collected:
– For example, rows represent the contents of a single
treatment data collection form, the information on an
individual
• Columns represent variables or characteristics of the
object of interest:
– For example, each column contains the answers to the
questions on the treatment data collection form: age, gender,
primary drug of use, etc.
Data Editor
• Data Editor comprises two screens:
– Data View: the previous screen
– Variable View: used to define the variables
• To move between the two:
– Use the View tab at the bottom of the screen
OR
– Ctrl + T
OR
– View/Variables from the Data View window
– View/Data from the Variable View window
Variable View
• Define your variables in Variable View
• Enter the data, the values of the variables, in Data View
The data entry process
Definition of variables
10 characteristics are used to define a variable:
Name Values
Type Missing
Width Column
Decimals Align
Label Measure
Name
• Each variable must have a unique name of not more
than 8 characters and starting with a letter
• Try to give meaningful variable names:
– Describing the characteristic: for example, age
– Linking to the questionnaire: for example, A1Q3
• Keep the names consistent across files
Type
• Internal formats:
– Numeric
– String (alphanumeric)
– Date
• Output formats:
– Comma
– Dot
– Scientific notation
– Dollar
– Custom currency
Numeric
• Numeric variables:
– Numeric measurements
– Codes
• Definition of the size of the variable
String (alphanumeric)
• String variables contain words or characters; strings can
include numbers but, taken here as characters,
mathematical operations cannot be applied to them
• The maximum size of a string variable is 255 characters
Date
• The input format for date variables must be defined,
such as DD/MM/YYYY, MM/DD/YYYY or MM/DD/YY
• Computers store dates as numbers from a base date; in
SPSS, dates are stored as the number of seconds from
14 October 1582
Example
• Create two variables:
– ID: the unique identifier, which will be alphanumeric with a
maximum of 8 characters
– Age: the age of the respondent measured in years, a
discrete variable ranging between 10 and 100
Click here
Click on the String radio button and change the characters to the size of the variable, 8 in this case.
Click OK.
Click on the Type column in the second row and define a numeric variable with a maximum size of 3
with no decimal points.
Click on OK to continue.
Note that a number of default values have been entered into the remaining columns.
Labels
• Descriptors for the variables
• Maximum 255 characters
• Used in the output
Variable labels added
Values
• Value labels are descriptors of the categories of a
variable
• Coding
Missing
• Defines missing values
• The values are excluded from some analysis
• Options:
– Up to 3 discrete missing values
– A range of missing values plus one discrete missing value
Click in the Missing Values column to obtain the dialogue box below. Enter the value 999 for Age.
Missing values added
Columns and Align
• Columns sets the amount of space reserved to display
the contents of the variable in Data View; generally the
default value is adequate
• Align sets whether the contents of the variable appear
on the left, centre or right of the cell in Data View
• Numeric variables are right-hand justified by default and
string variables left-hand justified by default; the
defaults are generally adequate
Measure
• Levels of measurement:
– Nominal
– Ordinal
– Interval
– Ratio
• In SPSS, interval and ratio are designated together as
Scale
• The default for string variables is Nominal
• The default for numeric variables is Scale
Returning to Data View, the first two column headings will reflect the two variables created: ID and
Age. Here the first six observations have been entered.
Exercise: define the necessary variables and enter the following data
Saving the file
• The file must always be saved in order to save the work
that has been done to date:
– File/Save
– Move to the target directory
– Enter a file name
– Save
Summary
• Data Editor
– Data View
– Variable View
• File/Save
• Variable definition
– Name
– Type
– Width
– Decimals
– Label
– Values
– Missing
– Columns
– Align
– Measure

More Related Content

Similar to trs-3.ppt

Minitab Seminar1.pptx
Minitab Seminar1.pptxMinitab Seminar1.pptx
Minitab Seminar1.pptx
DrMohammedFKadhim
 
An introduction to spss
An introduction to spssAn introduction to spss
An introduction to spss
zeeshanwrch
 
Spss Basics4 22 09
Spss Basics4 22 09Spss Basics4 22 09
Spss Basics4 22 09
chaley09
 
SPSS an intro...
SPSS an intro...SPSS an intro...
SPSS an intro...Jithin Zcs
 
RM UNIT 6.pptx
RM UNIT 6.pptxRM UNIT 6.pptx
RM UNIT 6.pptx
PallawiBulakh1
 
Spss by vijay ambast
Spss by vijay ambastSpss by vijay ambast
Spss by vijay ambast
Vijay Ambast
 
Spss (1)
Spss (1)Spss (1)
Spss (1)
Shahadat Hossen
 
Using SPSS for data analysis in linguistics
Using SPSS for data analysis in linguistics Using SPSS for data analysis in linguistics
Using SPSS for data analysis in linguistics
Ezzeldin M. T. Ali
 
June 2015
June 2015June 2015
June 2015
kiran srivastava
 
Introduction to the Research Method and SPSS
Introduction to the Research Method and SPSS Introduction to the Research Method and SPSS
Introduction to the Research Method and SPSS
emuptv
 
APSY3206 Lecture 1.pptx
APSY3206 Lecture 1.pptxAPSY3206 Lecture 1.pptx
APSY3206 Lecture 1.pptx
MariaMalikAwan
 
Introduction - Using Stata
Introduction - Using StataIntroduction - Using Stata
Introduction - Using Stata
Ryan Herzog
 
lecture_1.pptx
lecture_1.pptxlecture_1.pptx
lecture_1.pptx
MesfinShifara
 
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
Melba Shaya Sweety
 
Introduction to spss
Introduction to spssIntroduction to spss
Introduction to spss
Dr. Ankita Chaturvedi
 
Fundamental of SPSS
Fundamental of SPSSFundamental of SPSS
Fundamental of SPSS
Kang Sophanna
 
Software packages for statistical analysis - SPSS
Software packages for statistical analysis - SPSSSoftware packages for statistical analysis - SPSS
Software packages for statistical analysis - SPSS
ANAND BALAJI
 
data analysis techniques and statistical softwares
data analysis techniques and statistical softwaresdata analysis techniques and statistical softwares
data analysis techniques and statistical softwares
Dr.ammara khakwani
 
Data processing & Analysis: SPSS an overview
Data processing & Analysis: SPSS an overviewData processing & Analysis: SPSS an overview
Data processing & Analysis: SPSS an overview
ATHUL RAVI
 
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
AbdifatahAhmedHurre
 

Similar to trs-3.ppt (20)

Minitab Seminar1.pptx
Minitab Seminar1.pptxMinitab Seminar1.pptx
Minitab Seminar1.pptx
 
An introduction to spss
An introduction to spssAn introduction to spss
An introduction to spss
 
Spss Basics4 22 09
Spss Basics4 22 09Spss Basics4 22 09
Spss Basics4 22 09
 
SPSS an intro...
SPSS an intro...SPSS an intro...
SPSS an intro...
 
RM UNIT 6.pptx
RM UNIT 6.pptxRM UNIT 6.pptx
RM UNIT 6.pptx
 
Spss by vijay ambast
Spss by vijay ambastSpss by vijay ambast
Spss by vijay ambast
 
Spss (1)
Spss (1)Spss (1)
Spss (1)
 
Using SPSS for data analysis in linguistics
Using SPSS for data analysis in linguistics Using SPSS for data analysis in linguistics
Using SPSS for data analysis in linguistics
 
June 2015
June 2015June 2015
June 2015
 
Introduction to the Research Method and SPSS
Introduction to the Research Method and SPSS Introduction to the Research Method and SPSS
Introduction to the Research Method and SPSS
 
APSY3206 Lecture 1.pptx
APSY3206 Lecture 1.pptxAPSY3206 Lecture 1.pptx
APSY3206 Lecture 1.pptx
 
Introduction - Using Stata
Introduction - Using StataIntroduction - Using Stata
Introduction - Using Stata
 
lecture_1.pptx
lecture_1.pptxlecture_1.pptx
lecture_1.pptx
 
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
 
Introduction to spss
Introduction to spssIntroduction to spss
Introduction to spss
 
Fundamental of SPSS
Fundamental of SPSSFundamental of SPSS
Fundamental of SPSS
 
Software packages for statistical analysis - SPSS
Software packages for statistical analysis - SPSSSoftware packages for statistical analysis - SPSS
Software packages for statistical analysis - SPSS
 
data analysis techniques and statistical softwares
data analysis techniques and statistical softwaresdata analysis techniques and statistical softwares
data analysis techniques and statistical softwares
 
Data processing & Analysis: SPSS an overview
Data processing & Analysis: SPSS an overviewData processing & Analysis: SPSS an overview
Data processing & Analysis: SPSS an overview
 
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
 

Recently uploaded

一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
ukgaet
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
ewymefz
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
ArpitMalhotra16
 
一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单
ewymefz
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
v3tuleee
 
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
nscud
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
TravisMalana
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
Subhajit Sahu
 
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
ewymefz
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
AbhimanyuSinha9
 
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
pchutichetpong
 
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
2023240532
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
Oppotus
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
rwarrenll
 
一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单
ocavb
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
axoqas
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
enxupq
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
enxupq
 
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
vcaxypu
 
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptxData_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
AnirbanRoy608946
 

Recently uploaded (20)

一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
 
一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
 
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
 
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
 
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
 
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
Quantitative Data AnalysisReliability Analysis (Cronbach Alpha) Common Method...
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
 
一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
 
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
 
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptxData_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
 

trs-3.ppt

  • 1. SPSS data entry Training session 3 GAP Toolkit 5 Training in basic drug abuse data management and analysis
  • 2. Objectives • To describe opening and closing SPSS • To introduce the look and structure of SPSS • To introduce the data entry windows: Data View and Variable View • To outline the components necessary to define a variable • To introduce the SPSS online tutorial
  • 3. Uses for SPSS • Data management • Data analysis
  • 4. Data management • Defining variables • Coding values • Entering and editing data • Creating new variables • Recoding variables • Selecting cases
  • 5. Data analysis • Univariate statistics • Bivariate statistics • Multivariate statistics
  • 6. Opening SPSS • Double click the SPSS icon on the desktop OR • Start/Programs/SPSS for Windows/SPSS** • The following introductory screen should appear:
  • 7.
  • 8. The Data View window View tabs Status bar/boxes Cell edit field Cell information
  • 9. Data View • Rows represent cases or observations, that is, the objects on which data have been collected: – For example, rows represent the contents of a single treatment data collection form, the information on an individual • Columns represent variables or characteristics of the object of interest: – For example, each column contains the answers to the questions on the treatment data collection form: age, gender, primary drug of use, etc.
  • 10. Data Editor • Data Editor comprises two screens: – Data View: the previous screen – Variable View: used to define the variables • To move between the two: – Use the View tab at the bottom of the screen OR – Ctrl + T OR – View/Variables from the Data View window – View/Data from the Variable View window
  • 12. • Define your variables in Variable View • Enter the data, the values of the variables, in Data View The data entry process
  • 13. Definition of variables 10 characteristics are used to define a variable: Name Values Type Missing Width Column Decimals Align Label Measure
  • 14. Name • Each variable must have a unique name of not more than 8 characters and starting with a letter • Try to give meaningful variable names: – Describing the characteristic: for example, age – Linking to the questionnaire: for example, A1Q3 • Keep the names consistent across files
  • 15. Type • Internal formats: – Numeric – String (alphanumeric) – Date • Output formats: – Comma – Dot – Scientific notation – Dollar – Custom currency
  • 16. Numeric • Numeric variables: – Numeric measurements – Codes • Definition of the size of the variable
  • 17. String (alphanumeric) • String variables contain words or characters; strings can include numbers but, taken here as characters, mathematical operations cannot be applied to them • The maximum size of a string variable is 255 characters
  • 18. Date • The input format for date variables must be defined, such as DD/MM/YYYY, MM/DD/YYYY or MM/DD/YY • Computers store dates as numbers from a base date; in SPSS, dates are stored as the number of seconds from 14 October 1582
  • 19. Example • Create two variables: – ID: the unique identifier, which will be alphanumeric with a maximum of 8 characters – Age: the age of the respondent measured in years, a discrete variable ranging between 10 and 100
  • 20.
  • 22. Click on the String radio button and change the characters to the size of the variable, 8 in this case. Click OK.
  • 23. Click on the Type column in the second row and define a numeric variable with a maximum size of 3 with no decimal points. Click on OK to continue.
  • 24. Note that a number of default values have been entered into the remaining columns.
  • 25. Labels • Descriptors for the variables • Maximum 255 characters • Used in the output
  • 27. Values • Value labels are descriptors of the categories of a variable • Coding
  • 28. Missing • Defines missing values • The values are excluded from some analysis • Options: – Up to 3 discrete missing values – A range of missing values plus one discrete missing value
  • 29. Click in the Missing Values column to obtain the dialogue box below. Enter the value 999 for Age.
  • 31. Columns and Align • Columns sets the amount of space reserved to display the contents of the variable in Data View; generally the default value is adequate • Align sets whether the contents of the variable appear on the left, centre or right of the cell in Data View • Numeric variables are right-hand justified by default and string variables left-hand justified by default; the defaults are generally adequate
  • 32. Measure • Levels of measurement: – Nominal – Ordinal – Interval – Ratio • In SPSS, interval and ratio are designated together as Scale • The default for string variables is Nominal • The default for numeric variables is Scale
  • 33. Returning to Data View, the first two column headings will reflect the two variables created: ID and Age. Here the first six observations have been entered.
  • 34. Exercise: define the necessary variables and enter the following data
  • 35. Saving the file • The file must always be saved in order to save the work that has been done to date: – File/Save – Move to the target directory – Enter a file name – Save
  • 36.
  • 37. Summary • Data Editor – Data View – Variable View • File/Save • Variable definition – Name – Type – Width – Decimals – Label – Values – Missing – Columns – Align – Measure