SlideShare a Scribd company logo
Data Entry in Excel and
SPSS + Basic Data
manipulation
Dhritiman Chakrabarti
Assistant Professor,
Dept of Neuroanaesthesiology
and Neurocritical Care,
NIMHANS, Bangalore
SPSS Windows has 3 windows:
Data Editor
Syntax Editor, which displays syntax files
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.
SPSS Data View
SPSS Variable View
1.2 Data Entry into SPSS
There are 2 ways to enter data into SPSS:
1. Directly enter in to SPSS by typing in Data View
2. Enter into other database software such as
Excel then import into SPSS
Let’s start with the second option, using data in Excel.
What you shouldn’t do – A statistician’s Hell
7
What you should do – A statistician’s Heaven..
8
1. Give each variable a valid name (8 characters or less with no spaces or
punctuation, beginning with a letter not a numeric number). Short, easy to
remember word names.
Avoid the following variable names: TEST, ALL, BY, EQ, GE, GT, LE, LT,
NE, NOT, OR, TO, WITH. These are used in the SPSS syntax and if they
were permitted, the software would not be able to distinguish between a
command and a variable.
Each variable name must be unique; duplication is not allowed.
Variable names are not case sensitive. The names NEWVAR, NewVar, and
newvar are all considered identical.
First row is always Variable name. Second row onwards always contains
the patient/sample.
General guidelines for data entry into Excel
2. Encode categorical variables - Convert letters and words to numbers.
3. Avoid mixing symbols with data. Convert them to numbers.
4. Give each patient a unique, sequential case number (ID). Place this ID
number in the first column on the left
9
5. Each variable should be in its own column.
Avoid this:
Animal
Control1
Control2
Experiment1
Experiment2
Change to:
Animal Group
1 0
2 0
3 1
4 1
* It is recommended to use 0/1 for 2 groups with 0 as a reference group.
* Do not combine variables in one column
6. All data for a project should be in one spreadsheet.
7. Do not include graphs or summary statistics in the spreadsheet – Only
raw data.
10
8. However when data are repeatedly collected over a patient, it’s
recommended to have patient-day observation on a simple line to ease data
management. SPSS has a nice feature to convert from the longitudinal
format (Long format) to horizontal format (Wide format) – Data
Restructuring. When the number of repeats are few 2 or 3, horizontal
format may be preferred for simplicity.
Date ID SYSBP
1/2/2005 1 130
1/3/2005 1 120
1/4/2005 1 120
3/1/2005 2 110
3/2/2005 2 140
Longitudinal data entry
ID SYSBP1 SYSBP2 SYSBP3
1 130 120 120
2 110 140
Horizontal data entry
7. Each patient should be entered on a single line or row.
9. For yes/no questions, enter “0” for no and “1” for yes. Do not leave
blanks for no. Do not enter “?”, “*”, or “NA” for missing data because this
indicates to the statistical program than the variable is a string variable.
String variables cannot be used for any arithmetic computation.
11
Entering Date in Excel.
In Excel,go to:
Format, Cells, select Date under Category,
Choose Type for a format you like
12
Entering Time in Excel.
In Excel, go to:
Format, Cells, select Time under Category,
Choose Type for a format you like
13
Entering Date / Time in Excel.
In Excel, go to:
Format, Cells, select Time under Category,
Choose Data/Time format
14
Entering Date, Time in SPSS
In SPSS, open Variable View, Click Type for the variable you want to
Assign date format, click on Date, and select a format of your choice.
15
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 in SPSS
1. Re-coding existing variables
2. Creating new variables
3. Creating new variable from existing variables
4. Data labeling and formatting
17
Data cleaning in SPSS (1): Recoding existing variables (1)
Old New
ID Group Group
1 A 0
2 A 0
3 B 1
4 B 1
We want to use numeric coding for group instead of A and B.
18
Data cleaning in SPSS (2): Recoding existing variables (2)
From SPSS dialog box, go to:
Transform
Recode
Into Same variables (better to recode into different variable)
19
1. Select Group from the variable box into String Variables box
2. Click on Old and new Values to proceed
Data cleaning in SPSS (1): Recoding existing variables (3)
20
1. Type the old value and the new value you want to convert into
2. Click on Add (To remove, or change, click on Change or Remove)
3. Type all values in the Old  New box, then click Continue
4. Click OK to execute the commands.
Data cleaning in SPSS (1): Recoding existing variables (4)
21
Data Cleaning in SPSS (2)
Creating a new variable for Diastolic blood pressure (DiasBP):
In SPSS, go to Variable View,
Then type DiasBP at the last row under
Name
Go back to Data View and directly type diastolic blood pressure to separate
from SysBP.
Data Cleaning in SPSS (3)
Computing New variable from Existing variable(s)
Transform  Compute Variable  this window (Computing MAPB from SBPB
And DBPB
23
HT
61.00
68.00
47.00
66.00
72.00
67.00
72.00
72.00
66.00
60.00
61.00
59.00
73.00
65.00
71.00
68.00
69.00
66.00
66.00
68.00
Data Cleaning in SPSS (4): Data labeling and formatting (1)
Specifying Type of Variable
24
Data Labeling
Data Cleaning in SPSS (4): Data labeling and formatting (2)
25
Variable Formatting – For Categorical variables
Data Cleaning in SPSS (4): Data labeling and formatting (3)
26
Data Cleaning in SPSS (4): Data labeling and formatting (5)
Measurement category – Interval (Scale); Ordinal; Nominal

More Related Content

What's hot

SPSS How to use Spss software
SPSS How to use Spss softwareSPSS How to use Spss software
SPSS How to use Spss software
Debashis Baidya
 
Introduction to spss
Introduction to spssIntroduction to spss
Introduction to spss
Manish Parihar
 
INTRODUCTION TO STATA.pptx
INTRODUCTION TO STATA.pptxINTRODUCTION TO STATA.pptx
INTRODUCTION TO STATA.pptx
Dhananjaykumar464035
 
Spss training notes
Spss training notesSpss training notes
Spss training notes
Mzee Theogene KUBAHONIYESU
 
"A basic guide to SPSS"
"A basic guide to SPSS""A basic guide to SPSS"
"A basic guide to SPSS"
Bashir7576
 
Descriptive statistics
Descriptive statisticsDescriptive statistics
Descriptive statisticsAileen Balbido
 
Quantitative Data Analysis
Quantitative Data AnalysisQuantitative Data Analysis
Quantitative Data Analysis
Asma Muhamad
 
SPSS
SPSSSPSS
An introduction to spss
An introduction to spssAn introduction to spss
An introduction to spss
zeeshanwrch
 
An Introduction to SPSS
An Introduction to SPSSAn Introduction to SPSS
An Introduction to SPSS
Rayman Soe
 
Data analysis using spss
Data analysis using spssData analysis using spss
Data analysis using spss
Muhammad Ibrahim
 
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
 
Spss
SpssSpss
Data Analysis with SPSS : One-way ANOVA
Data Analysis with SPSS : One-way ANOVAData Analysis with SPSS : One-way ANOVA
Data Analysis with SPSS : One-way ANOVADr Ali Yusob Md Zain
 
Descriptive Statistics
Descriptive StatisticsDescriptive Statistics
Descriptive Statistics
CIToolkit
 
Basics of Educational Statistics (Inferential statistics)
Basics of Educational Statistics (Inferential statistics)Basics of Educational Statistics (Inferential statistics)
Basics of Educational Statistics (Inferential statistics)
HennaAnsari
 
Spss lecture notes
Spss lecture notesSpss lecture notes
Spss lecture notesDavid mbwiga
 
Basics stat ppt-types of data
Basics stat ppt-types of dataBasics stat ppt-types of data
Basics stat ppt-types of data
Farhana Shaheen
 

What's hot (20)

SPSS How to use Spss software
SPSS How to use Spss softwareSPSS How to use Spss software
SPSS How to use Spss software
 
Introduction to spss
Introduction to spssIntroduction to spss
Introduction to spss
 
INTRODUCTION TO STATA.pptx
INTRODUCTION TO STATA.pptxINTRODUCTION TO STATA.pptx
INTRODUCTION TO STATA.pptx
 
(Manual spss)
(Manual spss)(Manual spss)
(Manual spss)
 
Spss training notes
Spss training notesSpss training notes
Spss training notes
 
"A basic guide to SPSS"
"A basic guide to SPSS""A basic guide to SPSS"
"A basic guide to SPSS"
 
Descriptive statistics
Descriptive statisticsDescriptive statistics
Descriptive statistics
 
Quantitative Data Analysis
Quantitative Data AnalysisQuantitative Data Analysis
Quantitative Data Analysis
 
SPSS
SPSSSPSS
SPSS
 
An introduction to spss
An introduction to spssAn introduction to spss
An introduction to spss
 
An Introduction to SPSS
An Introduction to SPSSAn Introduction to SPSS
An Introduction to SPSS
 
Data analysis using spss
Data analysis using spssData analysis using spss
Data analysis using spss
 
Software packages for statistical analysis - SPSS
Software packages for statistical analysis - SPSSSoftware packages for statistical analysis - SPSS
Software packages for statistical analysis - SPSS
 
Spss
SpssSpss
Spss
 
Data Analysis with SPSS : One-way ANOVA
Data Analysis with SPSS : One-way ANOVAData Analysis with SPSS : One-way ANOVA
Data Analysis with SPSS : One-way ANOVA
 
Descriptive Statistics
Descriptive StatisticsDescriptive Statistics
Descriptive Statistics
 
Spss tutorial 1
Spss tutorial 1Spss tutorial 1
Spss tutorial 1
 
Basics of Educational Statistics (Inferential statistics)
Basics of Educational Statistics (Inferential statistics)Basics of Educational Statistics (Inferential statistics)
Basics of Educational Statistics (Inferential statistics)
 
Spss lecture notes
Spss lecture notesSpss lecture notes
Spss lecture notes
 
Basics stat ppt-types of data
Basics stat ppt-types of dataBasics stat ppt-types of data
Basics stat ppt-types of data
 

Similar to Data entry in Excel and SPSS

Spps training presentation 1
Spps training presentation 1Spps training presentation 1
Spps training presentation 1
Hassen Mohammed
 
SPSS software
SPSS software SPSS software
SPSS software
VinodBaithaVinodSir
 
Spss by vijay ambast
Spss by vijay ambastSpss by vijay ambast
Spss by vijay ambast
Vijay Ambast
 
Introduction to spss
Introduction to spssIntroduction to spss
Introduction to spss
Subodh Khanal
 
Spss basics tutorial
Spss basics tutorialSpss basics tutorial
Spss basics tutorial
santoshranjan77
 
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
 
Spss notes
Spss notesSpss notes
Spss notes
sitifatimahcheosmi
 
6967176.ppt
6967176.ppt6967176.ppt
6967176.ppt
ThemovieCorner
 
4b6c1c5c-e913-4bbf-b3a4-41e23cb961ba-161004200047.pdf
4b6c1c5c-e913-4bbf-b3a4-41e23cb961ba-161004200047.pdf4b6c1c5c-e913-4bbf-b3a4-41e23cb961ba-161004200047.pdf
4b6c1c5c-e913-4bbf-b3a4-41e23cb961ba-161004200047.pdf
Nitish Nagar
 
spss presentation.pdf
spss presentation.pdfspss presentation.pdf
spss presentation.pdf
AbebeNega
 
Spss guidelines
Spss guidelinesSpss guidelines
Spss guidelines
APPOLINAIRE BIZIMANA
 
SPSS GUIDE
SPSS GUIDESPSS GUIDE
SPSS GUIDE
Siti Mastura
 
MS Excel 2010 Most Important Features
MS Excel 2010 Most Important FeaturesMS Excel 2010 Most Important Features
MS Excel 2010 Most Important Features
hb_23
 
Formulas in ms excel for statistics(report2 in ict math ed)
Formulas in ms excel for statistics(report2 in ict math ed)Formulas in ms excel for statistics(report2 in ict math ed)
Formulas in ms excel for statistics(report2 in ict math ed)
Caryl Mae Puertollano
 
Spss tutorial 1
Spss tutorial 1Spss tutorial 1
Spss tutorial 1debataraja
 
Formulas in ms excel for statistics(report2 in ict math ed)
Formulas in ms excel for statistics(report2 in ict math ed)Formulas in ms excel for statistics(report2 in ict math ed)
Formulas in ms excel for statistics(report2 in ict math ed)
Caryl Mae Puertollano
 
Spss intro for engineering
Spss intro for engineeringSpss intro for engineering
Spss intro for engineering
Mahendra Poudel
 
Week 7 spss
Week 7 spssWeek 7 spss
Week 7 spss
wawaaa789
 

Similar to Data entry in Excel and SPSS (20)

Spps training presentation 1
Spps training presentation 1Spps training presentation 1
Spps training presentation 1
 
SPSS software
SPSS software SPSS software
SPSS software
 
Spss by vijay ambast
Spss by vijay ambastSpss by vijay ambast
Spss by vijay ambast
 
Introduction to spss
Introduction to spssIntroduction to spss
Introduction to spss
 
Spss basics tutorial
Spss basics tutorialSpss basics tutorial
Spss basics tutorial
 
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 notes
Spss notesSpss notes
Spss notes
 
6967176.ppt
6967176.ppt6967176.ppt
6967176.ppt
 
4b6c1c5c-e913-4bbf-b3a4-41e23cb961ba-161004200047.pdf
4b6c1c5c-e913-4bbf-b3a4-41e23cb961ba-161004200047.pdf4b6c1c5c-e913-4bbf-b3a4-41e23cb961ba-161004200047.pdf
4b6c1c5c-e913-4bbf-b3a4-41e23cb961ba-161004200047.pdf
 
spss presentation.pdf
spss presentation.pdfspss presentation.pdf
spss presentation.pdf
 
Advanced Excel ppt
Advanced Excel pptAdvanced Excel ppt
Advanced Excel ppt
 
Spss guidelines
Spss guidelinesSpss guidelines
Spss guidelines
 
SPSS GUIDE
SPSS GUIDESPSS GUIDE
SPSS GUIDE
 
MS Excel 2010 Most Important Features
MS Excel 2010 Most Important FeaturesMS Excel 2010 Most Important Features
MS Excel 2010 Most Important Features
 
spss teaching
spss teachingspss teaching
spss teaching
 
Formulas in ms excel for statistics(report2 in ict math ed)
Formulas in ms excel for statistics(report2 in ict math ed)Formulas in ms excel for statistics(report2 in ict math ed)
Formulas in ms excel for statistics(report2 in ict math ed)
 
Spss tutorial 1
Spss tutorial 1Spss tutorial 1
Spss tutorial 1
 
Formulas in ms excel for statistics(report2 in ict math ed)
Formulas in ms excel for statistics(report2 in ict math ed)Formulas in ms excel for statistics(report2 in ict math ed)
Formulas in ms excel for statistics(report2 in ict math ed)
 
Spss intro for engineering
Spss intro for engineeringSpss intro for engineering
Spss intro for engineering
 
Week 7 spss
Week 7 spssWeek 7 spss
Week 7 spss
 

More from Dhritiman Chakrabarti

For crossover designs
For crossover designsFor crossover designs
For crossover designs
Dhritiman Chakrabarti
 
Logistic regression analysis
Logistic regression analysisLogistic regression analysis
Logistic regression analysis
Dhritiman Chakrabarti
 
Agreement analysis
Agreement analysisAgreement analysis
Agreement analysis
Dhritiman Chakrabarti
 
Linear regression analysis
Linear regression analysisLinear regression analysis
Linear regression analysis
Dhritiman Chakrabarti
 
Inferential statistics correlations
Inferential statistics correlationsInferential statistics correlations
Inferential statistics correlations
Dhritiman Chakrabarti
 
Inferential statistics quantitative data - single sample and 2 groups
Inferential statistics   quantitative data - single sample and 2 groupsInferential statistics   quantitative data - single sample and 2 groups
Inferential statistics quantitative data - single sample and 2 groups
Dhritiman Chakrabarti
 
Inferential statistics nominal data
Inferential statistics   nominal dataInferential statistics   nominal data
Inferential statistics nominal data
Dhritiman Chakrabarti
 
Inferential statistics quantitative data - anova
Inferential statistics   quantitative data - anovaInferential statistics   quantitative data - anova
Inferential statistics quantitative data - anova
Dhritiman Chakrabarti
 
Types of variables and descriptive statistics
Types of variables and descriptive statisticsTypes of variables and descriptive statistics
Types of variables and descriptive statistics
Dhritiman Chakrabarti
 
Study designs, randomization, bias errors, power, p-value, sample size
Study designs, randomization, bias errors, power, p-value, sample sizeStudy designs, randomization, bias errors, power, p-value, sample size
Study designs, randomization, bias errors, power, p-value, sample size
Dhritiman Chakrabarti
 
Anaesthesia for functional neurosurgery
Anaesthesia for functional neurosurgeryAnaesthesia for functional neurosurgery
Anaesthesia for functional neurosurgery
Dhritiman Chakrabarti
 
Epilepsy and anaesthesia
Epilepsy and anaesthesiaEpilepsy and anaesthesia
Epilepsy and anaesthesia
Dhritiman Chakrabarti
 
Icp monitoring seminar
Icp monitoring seminarIcp monitoring seminar
Icp monitoring seminar
Dhritiman Chakrabarti
 
Caeserean section complicated by mitral stenosis
Caeserean section complicated by mitral stenosisCaeserean section complicated by mitral stenosis
Caeserean section complicated by mitral stenosisDhritiman Chakrabarti
 
Bronchial blockers & endobronchial tubes
Bronchial blockers & endobronchial tubesBronchial blockers & endobronchial tubes
Bronchial blockers & endobronchial tubesDhritiman Chakrabarti
 
Bougie, trachlite , laryngeal tube , combitube , i gel ,truview
Bougie, trachlite , laryngeal tube , combitube , i gel ,truviewBougie, trachlite , laryngeal tube , combitube , i gel ,truview
Bougie, trachlite , laryngeal tube , combitube , i gel ,truviewDhritiman Chakrabarti
 

More from Dhritiman Chakrabarti (20)

For crossover designs
For crossover designsFor crossover designs
For crossover designs
 
Logistic regression analysis
Logistic regression analysisLogistic regression analysis
Logistic regression analysis
 
Agreement analysis
Agreement analysisAgreement analysis
Agreement analysis
 
Linear regression analysis
Linear regression analysisLinear regression analysis
Linear regression analysis
 
Inferential statistics correlations
Inferential statistics correlationsInferential statistics correlations
Inferential statistics correlations
 
Inferential statistics quantitative data - single sample and 2 groups
Inferential statistics   quantitative data - single sample and 2 groupsInferential statistics   quantitative data - single sample and 2 groups
Inferential statistics quantitative data - single sample and 2 groups
 
Inferential statistics nominal data
Inferential statistics   nominal dataInferential statistics   nominal data
Inferential statistics nominal data
 
Inferential statistics quantitative data - anova
Inferential statistics   quantitative data - anovaInferential statistics   quantitative data - anova
Inferential statistics quantitative data - anova
 
Types of variables and descriptive statistics
Types of variables and descriptive statisticsTypes of variables and descriptive statistics
Types of variables and descriptive statistics
 
Study designs, randomization, bias errors, power, p-value, sample size
Study designs, randomization, bias errors, power, p-value, sample sizeStudy designs, randomization, bias errors, power, p-value, sample size
Study designs, randomization, bias errors, power, p-value, sample size
 
Anaesthesia for functional neurosurgery
Anaesthesia for functional neurosurgeryAnaesthesia for functional neurosurgery
Anaesthesia for functional neurosurgery
 
Epilepsy and anaesthesia
Epilepsy and anaesthesiaEpilepsy and anaesthesia
Epilepsy and anaesthesia
 
Icp monitoring seminar
Icp monitoring seminarIcp monitoring seminar
Icp monitoring seminar
 
Caeserean section complicated by mitral stenosis
Caeserean section complicated by mitral stenosisCaeserean section complicated by mitral stenosis
Caeserean section complicated by mitral stenosis
 
Bronchospasm during induction
Bronchospasm during inductionBronchospasm during induction
Bronchospasm during induction
 
Bronchial blockers & endobronchial tubes
Bronchial blockers & endobronchial tubesBronchial blockers & endobronchial tubes
Bronchial blockers & endobronchial tubes
 
Breathing systems
Breathing systemsBreathing systems
Breathing systems
 
Brachial plexus block
Brachial plexus blockBrachial plexus block
Brachial plexus block
 
Bph
BphBph
Bph
 
Bougie, trachlite , laryngeal tube , combitube , i gel ,truview
Bougie, trachlite , laryngeal tube , combitube , i gel ,truviewBougie, trachlite , laryngeal tube , combitube , i gel ,truview
Bougie, trachlite , laryngeal tube , combitube , i gel ,truview
 

Recently uploaded

FP Growth Algorithm and its Applications
FP Growth Algorithm and its ApplicationsFP Growth Algorithm and its Applications
FP Growth Algorithm and its Applications
MaleehaSheikh2
 
Tabula.io Cheatsheet: automate your data workflows
Tabula.io Cheatsheet: automate your data workflowsTabula.io Cheatsheet: automate your data workflows
Tabula.io Cheatsheet: automate your data workflows
alex933524
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
ArpitMalhotra16
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
vcaxypu
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
ewymefz
 
tapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive datatapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive data
theahmadsaood
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
NABLAS株式会社
 
社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .
NABLAS株式会社
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
enxupq
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
jerlynmaetalle
 
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdfSample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Linda486226
 
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project PresentationPredicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Boston Institute of Analytics
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
axoqas
 
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
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
ewymefz
 
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
 
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
 
Opendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptxOpendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptx
Opendatabay
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
ukgaet
 

Recently uploaded (20)

FP Growth Algorithm and its Applications
FP Growth Algorithm and its ApplicationsFP Growth Algorithm and its Applications
FP Growth Algorithm and its Applications
 
Tabula.io Cheatsheet: automate your data workflows
Tabula.io Cheatsheet: automate your data workflowsTabula.io Cheatsheet: automate your data workflows
Tabula.io Cheatsheet: automate your data workflows
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
 
tapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive datatapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive data
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
 
社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
 
The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...The affect of service quality and online reviews on customer loyalty in the E...
The affect of service quality and online reviews on customer loyalty in the E...
 
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdfSample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
 
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project PresentationPredicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
 
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
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单
 
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
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
 
Opendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptxOpendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptx
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
 

Data entry in Excel and SPSS

  • 1. Data Entry in Excel and SPSS + Basic Data manipulation Dhritiman Chakrabarti Assistant Professor, Dept of Neuroanaesthesiology and Neurocritical Care, NIMHANS, Bangalore
  • 2. SPSS Windows has 3 windows: Data Editor Syntax Editor, which displays syntax files 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.
  • 5. 1.2 Data Entry into SPSS There are 2 ways to enter data into SPSS: 1. Directly enter in to SPSS by typing in Data View 2. Enter into other database software such as Excel then import into SPSS Let’s start with the second option, using data in Excel.
  • 6. What you shouldn’t do – A statistician’s Hell
  • 7. 7 What you should do – A statistician’s Heaven..
  • 8. 8 1. Give each variable a valid name (8 characters or less with no spaces or punctuation, beginning with a letter not a numeric number). Short, easy to remember word names. Avoid the following variable names: TEST, ALL, BY, EQ, GE, GT, LE, LT, NE, NOT, OR, TO, WITH. These are used in the SPSS syntax and if they were permitted, the software would not be able to distinguish between a command and a variable. Each variable name must be unique; duplication is not allowed. Variable names are not case sensitive. The names NEWVAR, NewVar, and newvar are all considered identical. First row is always Variable name. Second row onwards always contains the patient/sample. General guidelines for data entry into Excel 2. Encode categorical variables - Convert letters and words to numbers. 3. Avoid mixing symbols with data. Convert them to numbers. 4. Give each patient a unique, sequential case number (ID). Place this ID number in the first column on the left
  • 9. 9 5. Each variable should be in its own column. Avoid this: Animal Control1 Control2 Experiment1 Experiment2 Change to: Animal Group 1 0 2 0 3 1 4 1 * It is recommended to use 0/1 for 2 groups with 0 as a reference group. * Do not combine variables in one column 6. All data for a project should be in one spreadsheet. 7. Do not include graphs or summary statistics in the spreadsheet – Only raw data.
  • 10. 10 8. However when data are repeatedly collected over a patient, it’s recommended to have patient-day observation on a simple line to ease data management. SPSS has a nice feature to convert from the longitudinal format (Long format) to horizontal format (Wide format) – Data Restructuring. When the number of repeats are few 2 or 3, horizontal format may be preferred for simplicity. Date ID SYSBP 1/2/2005 1 130 1/3/2005 1 120 1/4/2005 1 120 3/1/2005 2 110 3/2/2005 2 140 Longitudinal data entry ID SYSBP1 SYSBP2 SYSBP3 1 130 120 120 2 110 140 Horizontal data entry 7. Each patient should be entered on a single line or row. 9. For yes/no questions, enter “0” for no and “1” for yes. Do not leave blanks for no. Do not enter “?”, “*”, or “NA” for missing data because this indicates to the statistical program than the variable is a string variable. String variables cannot be used for any arithmetic computation.
  • 11. 11 Entering Date in Excel. In Excel,go to: Format, Cells, select Date under Category, Choose Type for a format you like
  • 12. 12 Entering Time in Excel. In Excel, go to: Format, Cells, select Time under Category, Choose Type for a format you like
  • 13. 13 Entering Date / Time in Excel. In Excel, go to: Format, Cells, select Time under Category, Choose Data/Time format
  • 14. 14 Entering Date, Time in SPSS In SPSS, open Variable View, Click Type for the variable you want to Assign date format, click on Date, and select a format of your choice.
  • 15. 15 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
  • 16. Data Cleaning in SPSS 1. Re-coding existing variables 2. Creating new variables 3. Creating new variable from existing variables 4. Data labeling and formatting
  • 17. 17 Data cleaning in SPSS (1): Recoding existing variables (1) Old New ID Group Group 1 A 0 2 A 0 3 B 1 4 B 1 We want to use numeric coding for group instead of A and B.
  • 18. 18 Data cleaning in SPSS (2): Recoding existing variables (2) From SPSS dialog box, go to: Transform Recode Into Same variables (better to recode into different variable)
  • 19. 19 1. Select Group from the variable box into String Variables box 2. Click on Old and new Values to proceed Data cleaning in SPSS (1): Recoding existing variables (3)
  • 20. 20 1. Type the old value and the new value you want to convert into 2. Click on Add (To remove, or change, click on Change or Remove) 3. Type all values in the Old  New box, then click Continue 4. Click OK to execute the commands. Data cleaning in SPSS (1): Recoding existing variables (4)
  • 21. 21 Data Cleaning in SPSS (2) Creating a new variable for Diastolic blood pressure (DiasBP): In SPSS, go to Variable View, Then type DiasBP at the last row under Name Go back to Data View and directly type diastolic blood pressure to separate from SysBP.
  • 22. Data Cleaning in SPSS (3) Computing New variable from Existing variable(s) Transform  Compute Variable  this window (Computing MAPB from SBPB And DBPB
  • 24. 24 Data Labeling Data Cleaning in SPSS (4): Data labeling and formatting (2)
  • 25. 25 Variable Formatting – For Categorical variables Data Cleaning in SPSS (4): Data labeling and formatting (3)
  • 26. 26 Data Cleaning in SPSS (4): Data labeling and formatting (5) Measurement category – Interval (Scale); Ordinal; Nominal