Sample PROJECT RM Lab
Sample PROJECT RM Lab
ARSHAN NASSIR
BBA (4thSem)
Enrollment No. - 01615501717
DECLARATION
2.2.3 Analyze
2.2.4 File
2.2.5 Edit
2.2.6 Transform
2.2.7 Graphs
Chapter 3 Entering Data to SPSS
3.1 Entering Data to SPSS
3.2 How to enter data into SPSS?
3.3 Steps to enter data
Chapter 4 SPSS Lab Exercise
4.1 Exercise 1- Descriptive Statistics of Q1,Q2,Q3,Q4,Q5
4.2 Exercise 2 – Independent Sample Test.
4.3 Exercise 3 – Simple Bivariate Correlation
Introduction to SPSS
What is SPSS
SPSS is a Windows based program that can be used to perform data entry and
analysis and to create tables and graphs. SPSS is capable of handling large amounts of
data and can perform all of the analyses covered in the text and much more. SPSS is
commonly used in the Social Sciences and in the business world, so familiarity with this
program should serve you well in the future.
Opening SPSS
Depending on how the computer you are working on is structured, you can open
SPSS in one of two ways.
1. If there is an SPSS shortcut like this on the desktop, simply put the
cursor on it and double click the left mouse button.
2. Click the left mouse button on the button on your screen, then put
your cursor on Programs or All Programs and left click the mouse. Select SPSS for
Windows by clicking the left mouse button. (For a while that started calling the program
PASW Statistics 17, but they seem to have given that up as a dumb idea when everyone
else calls it SPSS. The version number may change by the time you read this.) Either
approach will launch the program.
You will see a screen that looks like the image on the next page. The dialog box
that appears offers choices of running the tutorial, typing in data, running queries, or
opening an existing data source. The window behind this is the Data Editor window
which is used to display the data from whatever file you are using. You could select any
one of the options on the start-up dialog box and click OK, or you could simply hit
Cancel. If you hit Cancel, you can either enter new data in the blank Data Editor or you
could open an existing file using the File menu bar as explained later.
Click Cancel, and we’ll get acquainted with the layout of SPSS.
Advantages of SPSS
One can import data from other sources, when data is organized as a database,
including Excel.
Comprehensive Data Management tools - The most critical part of any data
analysis is the initial data entry. IBM SPSS offers a simple spread sheet format for
data entry that is intuitive and easy to start with. More importantly, IBM SPSS
provides a broad range of data documentation (especially value labels) that will
help you to ensure consistency in your data entry.
Excellent graphical display options.- IBM SPSS provides scatterplots, boxplots,
and histograms that help to see patterns in your data. These graphics will provide
a general framework for understanding your data and its interpretation
IBM SPSS offers a broad range of highly flexible statistical models: most notably
the general linear model and a variety of logistic regression models. These allow
you to have a single program that will meet almost all your data analysis needs.
Disadvantages of SPSS
Does not support Structural Equation Modelling (by and large, an extension
method of regression models based on covariance matrix)
Does not allows for simultaneous estimation of regression parameters and
associations between independent (predictor) variables
Does not provides model fit indices to evaluate how well data is represented
Does not allows including latent traits without building composite scores or
extracting factor regression scores
Uses of SPSS
Data Collection and Organisation - SPSS is often used as a data collection tool
by researchers. The data entry screen in SPSS looks much like any other spread
sheet software. You can enter variables and quantitative data and save the file as a
data file. Furthermore, you can organize your data in SPSS by assigning
properties to different variables. For example, you can designate a variable as a
nominal variable, and that information is stored in SPSS. The next time you
access the data file, which could be weeks, months or even years, you'll be able to
see exactly how your data is organized.
Data Output - Once data is collected and entered into the data sheet in SPSS, you
can create an output file from the data. For example, you can create frequency
distributions of your data to determine whether your data set is normally
distributed. The frequency distribution is displayed in an output file. You can
export items from the output file and place them into a research article you're
writing. Therefore, instead of recreating a table or graph, you can take the table or
graph directly from the data output file from SPSS.
Statistical Tests - The most obvious use for SPSS is to use the software to run
statistical tests. SPSS has all of the most widely used statistical tests built-in to the
software. Therefore, you won't have to do any mathematical equations by hand.
Once you run a statistical test, all associated outputs are displayed in the data
output file. You can also transform your data by performing advanced statistical
transformations. This is especially useful for data that is not normally distributed.
CHAPTER 2
LAYOUT OF SPSS
Layout of SPSS
The Data Editor window has two views that can be selected from the lower left
hand side of the screen. Data View is where you see the data you are using. Variable
View is where you can specify the format of your data when you are creating a file or
where you can check the format of a pre-existing file. The data in the Data Editor is
saved in a file with the extension .sav.
Menu bar
Icons
On the File menu, click Open and select Output. Select appendixoutput.spo from the
files that can be found at
http://www.uvm.edu/~dhowell/fundamentals7/SPSSManual/SPSSLongerManual/
DataForSPSS/. (At the moment this set of web pages is the most recent version
whichever of my books you are using.) Click Ok. The following will appear. The left
hand side is an outline of all of the output in the file. The right side is the actual
output. To shrink or enlarge either side put your cursor on the line that divides them.
When the double headed arrow appears, hold the left mouse button and move the line
in either direction. Release the button and the size will be adjusted.
Finally, there is the Syntax window which displays the command language used to
run various operations. Typically, you will simply use the dialog boxes to set up
commands, and would not see the Syntax window. The Syntax window would be
activated if you pasted the commands from the dialog box to it, or if you wrote you own
syntax--something we will not focus on here. Syntax files end in the extension .sps.
Review the options listed under each menu on the Menu Bar by clicking them one at a
time. Follow along with the below descriptions.
Data allows you to select several options ranging from displaying data that is
sorted by a specific variable to selecting certain cases for subsequent analyses.
Analyze includes all of the commands to carry out statistical analyses and to
calculate descriptive statistics. Much of this book will focus on using commands located
in this menu.
Graphs includes the commands to create various types of graphs including box
plots, histograms, line graphs, and bar charts.
Utilities allows you to list file information which is a list of all variables, there
labels, values, locations in the data file, and type.
Add-ons are programs that can be added to the base SPSS package. You probably
do not have access to any of those.
Window can be used to select which window you want to view (i.e., Data Editor,
Output Viewer, or Syntax). Since we have a data file and an output file open, let’s try
this.
Help has many useful options including a link to the SPSS homepage, a statistics
coach, and a syntax guide. Using topics, you can use the index option to type in any key
word and get a list of options, or you can view the categories and subcategories available
under contents. This is an excellent tool and can be used to troubleshoot most problems.
The Icons directly under the Menu bar provide shortcuts to many common
commands that are available in specific menus. Take a moment to review these as well.
Place your cursor over the Icons for a few seconds, and a description of the underlying
command will appear. For example, this icon is the shortcut for Save. Review the
others yourself.
In the chapters that follow, we will review many specific functions available
through these Menus and Icons, but it is important that you take a few moments to
familiarize yourself with the layout and options before beginning.
Exiting SPSS
To close SPSS, you can either left click on the close button located on the
upper right hand corner of the screen or select Exit from the File menu.
Choose one of these approaches.
A dialog box like the one below will appear for every open window asking you if you
want to save it before exiting. You almost always want to save data files. Output files
may be large, so you should ask yourself if you need to save them or if you simply want
to print them.
Click No for each dialog box since we do not have any new files or changed files to
save.
Exercises
3. Open appendixd.sav. In the Data Viewer click Grid Lines in the View menu and
note what happens.
4. While in the Data Viewer for appendixd.sav, click Font in the View menu and
select the font style and size of your choice.
When you open the SPSS program, you will see a blank spreadsheet in Data View. If you
already have another dataset open but want to create a new one, click File > New > Data
to open a blank spreadsheet.
You will notice that each of the columns is labeled “var.” The column names will
represent the variables that you enter in your dataset. You will also notice that each row
is labeled with a number (“1,” “2,” and so on). The rows will represent cases that will be
a part of your dataset. When you enter values for your data in the spreadsheet cells, each
value will correspond to a specific variable (column) and a specific case (row).
1. Click the Variable View tab. Type the name for your first variable under the
Name column. You can also enter other information about the variable, such as
the type (the default is “numeric”), width, decimals, label, etc. Type the name for
each variable that you plan to include in your dataset. In this example, I will type
“School_Class” since I plan to include a variable for the class level of each
student (i.e., 1 = first year, 2 = second year, 3 = third year, and 4 = fourth year). I
will also specify 0 decimals since my variable values will only include whole
numbers. (The default is two decimals.)
2. Click the Data View tab. Any variable names that you entered in Variable View
will now be included in the columns (one variable name per column). You can see
that School_Class appears in the first column in this example.
3. Now you can enter values for each case. In this example, cases represent students.
For each student, enter a value for their class level in the cell that corresponds to
the appropriate row and column. For example, the first person’s information
should appear in the first row, under the variable column School_Class. In this
example, the first person’s class level is “2,” the second person’s is “1,” the third
person’s is “1,” the fourth person’s is “3,” and so on
4. Repeat these steps for each variable that you will include in your dataset. Don't
forget to periodically save your progress as you enter data.
CHAPTER 4
SPSS EXERCISE
To enter data:
First, open SPSS. Now a spreadsheet will appear on the screen. Then insert numbers
from1 to 25 in the first column on the data sheet. To select any data entry click within
the cell and to move around the spreadsheet, use ENTER Key – to go down, TAB – to go
across to the right and SHIFT TAB – to move left or you can use ARROWS to move
around the spreadsheet.
STEP1: var00001 with ID where it says Name. Continue to move across the row and fill
in the information for that variable.
STEP2: Type- the default is numeric. Do not change for this example.
STEP3: Width- the default is 8 spaces. Do not change for this example.
STEP5: Label- In the "variable label" bar, type your variable name, in this
example:
Identification number
STEP6: Missing- This is to identify variables that you want treated as missing. For
example, if a respondent had put in not applicable on a survey item you would want to
code it as a missing variable. Leave blank for this example.
STEP8: Align- This changes how the variables appear on your screen. Do not change for
this example.
STEP9: Measure- There are three different types of levels of measurement you can
choose from - nominal, ordinal, and scale. Choose the appropriate measure. In this
example, choose nominal.
For the categorical variables, Province, Gender, Ethnicity, and Religion, you will need to
define the categories.
Click Add
Click Add
Continue
Enter all the data and name all the variables in this manner, according to the description
provided. Repeat this sequence for all the variables.
Data Description
Var1 Name
Var2 POI
1.00 = University
2.00 = Degree College
3.00 = Engineering College
4.00 = Management College
5.00 = Others
Var3 NOI
1.00 = Government Aided
2.00 = Self Financed
3.00 = Others
Var4 Age
1.00 = Less than 30 years
2.00 = 31 years to 40 years
3.00 = 41 years to 50 years
4.00 = 51 years and above
Var5 QUALIFICATION
1.00 = Graduate
2.00 = B.Ed/M.Ed
3.00 = M.Tech/M.Sc/M.C.A
4.00 = M.A/M.B.A/M.Com
5.00 = Ph.D.
6.00 = UGC-NET
Var6 GENDER
1.00 = Male
2.00 = Female
Var7 SALARY
1.00 = Between 20k-35k
2.00 = Between 35k-50k
3.00 = Between 50k-65k
4.00 = 65k and above
Var8 EXPERIENCE
1.00 = Less than 5 years
2.00 = 6 years - 10 years
3.00 = 11 years - 15 years
4.00 = 16 years - 20 years
5.00 = More than 20 years
Var9 Q1 - Q5
1.00 = Strongly Disagree
2.00 = Disagree
3.00 = Neutral
4.00 = Agree
5.00 = Strongly Agree
Statistics
Descriptive statistics describes the frequencies of data in terms of mean, median and
mode. Pertaining to the data given the descriptive statistics was calculated for first 5
questions and the result obtained is given below
Question - 1
Mean =3.4075 ( It is obtained by add all the values together and divide by the number of
values in the set, in this data set the overall scores given by respondents are added and
● Mode=4.00 ( It is a statistical term used that refers to the most frequently occuring
value found in a set of numbers)
Question - 2
● Mean=4.4100
● Median=4.0000
● Mode=4.00
Question - 3
● Mean = 2.2700
● Median = 3.0000
● Mode = 3.00
Question - 4
● Mean = 1.9675
● Median = 2.0000
● Mode = 2.00
Question - 5
● Mean = 4.4000
● Median = 4.0000
● Mode = 4.00
SPSS Lab Exercise 3
Histograms
Step 3 Frequencies
Step 4 Click on the selected variables in the left box and transfer them to the
variable(s) box by clicking the right arrow.
Question - 1
Question-2
Question-3
Question-4
Question- 5
Lab Exercise 5
Step 1 Analyse
Lab Exercise 6
Step1 Analyze
Step 6 Continue
Step 1Analyze
Step 2Regression
Step3 Linear