Nothing Special   »   [go: up one dir, main page]

Spss Assignment

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 28

1.

AN INTRODUCTION TO THE STATISTICAL PACKAGE SPSS


SPSS statistical package is one of the most popular statistical packages which can
perform highly complex data manipulation and analysis with simple instructions. SPSS, standing
for Statistical Package for the Social Sciences, is a powerful, user-friendly software package for
the manipulation and statistical analysis of data. It is frequently used in the social science. The
development of SPSS began in 1965 at Stanford University and continued in 1970 at the national opinion
research centre at Chicago University. It became a commercial organisation based in Chicago in 1975.
Among the many packages that have been developed for the analysis of quantitative data, the most widely
used in education is the Statistical Package for the Social Sciences (SPSS). It is an extreme
comprehensive package which can perform highly complex data manipulation and analysis with simple
instruction. SPSS has a vast number of statistical and mathematical functions, scores of statistical
procedures and a very flexible data handling capability.

SPSS is a comprehensive system for analyzing data. SPSS can take data from almost any
type of file and use them to generate tabulated reports, charts, and plots of distributions and
trends, descriptive statistics, and complex statistical analyses. SPSS makes statistical analysis
more accessible for the beginner and more convenient for the experienced user. Simple menus
and dialog box selections make it possible to perform complex analyses without typing a single
line of command syntax.
SPSS has four windows--- Data editor; Output viewer; Syntax editor; Script window.
Many tasks can be performed with the menus and dialog boxes but some very powerful features
are available only with command syntax. Graphs command is used exclusively in SPSS to make
graphs. SPSS usually creates commonly used graphics in the fields of social science, such as
histograms, scatterplots, and regression line, etc. The Graphs command allows changing aspects
of axes, adding text, changing color and font, copying, pasting, and exporting, etc. You could
also manually editing graphics for publication. For more information regarding making
publication ready graphics, please refer “http://www.techdocs.ku.edu/docs/spss_output-
publishing.pdf”. However, SPSS cannot give you very complicated statistical graphics, such as
maps, contour plot, etc.

1
1.2 OPENING SPSS

 Go to the start menu on Windows taskbar


 Click on All Programs
 Find SPSS program option
 Click on SPSS 16.0 to open program

Fig .1 Opening SPSS Program


 Alternatively, if you have an SPSS desktop icon then you could double click on that item
to open SPSS
 Once SPSS has opened up there are several options as to how to import your data
 You can open it from an existing file
 If the dataset is small, then you could type the dataset in by hand
 You can run the tutorial as well as a few more option

2
 We will open an existing dataset.

Fig.2 SPSS Data Editor

 To open the dataset for analysis, you have to go to the Folder in which it is located
 If the dataset is saved as a .sav file, then it will appear in the folder
1.3 SPSS MAIN MENUS
 SPSS has 11 main menus, which provide access to every tool of the SPSS program. We
can see the menus on the top of Figure
Menus

Fig.3 Main Menus

3
The File, Edit and View menus are very similar to what we get on opening a spreadsheet.
The File menu let us open, save, print and close files and provides access to recently used files.
The Edit menu let us do things like cut, copy, paste etc. The View menu we can hide or show the
toolbar, status bar, gridlines etc.
The Data menu is an important tool in SPSS. It allows us to manipulate the data in
various ways. We can define variables, go to a particular case, sort cases, transpose them, merge
cases as well as variables from some other file. The Transform menu is another very useful tool,
which let us compute new variables and make changes to existing ones.
The Analyze menu is the function which lets us perform all the statistical analyses. This
has various statistical tools categorized under different categories. The Graphs menu lets us
make various types of plots from our data. The Add-ons tells us about other programs of the
SPSS family such as Amos, Clementine etc. In addition, we can find the newly added functions
under Add-ons . Finally , The Window and Help menus are very similar to other Windows
application menus (Gaur & Gaur, 2010).
1.4 SPSS WINDOWS HAS 4 WINDOWS:
 Data Editor
 Viewer or Draft Viewer which displays the output files
 Syntax Editor, which displays syntax files
 Script window
1.4.1 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.
1.4.2 SPSS Data View

By default the Data View, which allows the data to be entered and viewed. The user can toggle
between the windows by clicking on the appropriate tabs on the bottom left of the screen. The
place to enter data, where

 Columns: variables
 Rows: records

4
Fig.4 Data view
1.4.3 SPSS Variable View

The Variable View spreadsheet serves to define the variables. Each variable definition occupies a
row of this spreadsheet. As soon as data is entered under a column in the Data View, the default
name of the column occupies a row in the Variable View. The place to enter variables, where

 List of all variables


 Characteristics of all variables

Fig.5 Variable view

5
There are 10 characteristics to be specified under the columns of the Variable View

1.Name — the chosen variable name. This can be up to eight alphanumeric characters but must
begin with a letter. While the underscore (_) is allowed, hyphens (-), ampersands (&), and spaces
cannot be used. Variable names are not case sensitive.
2. Type — the type of data. SPSS provides a default variable type once variable values have
been entered in a column of the Data View. The type can be changed by highlighting the
respective entry in the second column of the Variable View and clicking the three-periods
symbol (…) appearing on the right-hand side of the cell. This results in the Variable Type box
being opened, which offers a number of types of data including various formats for numerical
data, dates, or currencies. (Note that a common mistake made by first-time users is to enter
categorical variables as type “string” by typing text into the Data View. To enable later analyses,
categories should be given artificial number codes and defined to be of type “numeric.”)
3. Width — the width of the actual data entries. The default width of numerical variable entries
is eight. The width can be increased or decreased by highlighting the respective cell in the third
column right-hand side of the cell or by simply typing a new number in the cell.
4. Decimals — the number of digits to the right of the decimal place to be displayed for data
entries. This is not relevant for string data and for such variables the entry under the fourth
column is given as a greyed-out zero. The value can be altered in the same way as the value of
Width.
5. Label — a label attached to the variable name. In contrast to the variable name, this is not
confined to eight characters and spaces can be used. It is generally a good idea to assign variable
labels. They are helpful for reminding users of the meaning of variables (placing the cursor over
the variable name in the Data View will make the variable label appear) and can be displayed in
the output from statistical analyses.
6. Values — labels attached to category codes. For categorical variables, an integer code should
be assigned to each category and the variable defined to be of type “numeric.” When this has
been done, clicking on the respective cell under the sixth column of the Variable View makes the
three-periods symbol appear, and clicking this opens the Value Labels dialogue box, which in
turn allows assignment of labels to category codes. For example, our data set included a
categorical variable sex indicating

6
7. Missing — missing value codes. SPSS recognizes the period symbol as indicating a missing
value. If other codes have been used (e.g., 99, 999) these have to be declared to represent missing
values by highlighting the respective cell in the seventh column, clicking the three-periods
symbol and filling in the resulting Missing Values dialogue box accordingly.
8. Columns — width of the variable column in the Data View. The default cell width for
numerical variables is eight. Note that when the Width value is larger than the Columns value,
only part of the data entry might be seen in the Data View. The cell width can be changed in the
same way as the width of the data entries or simply by dragging the relevant column boundary.
(Place cursor on right-hand boundary of the title of the column to be resized. When the cursor
changes into a vertical line with a right and left arrow, drag the cursor to the right or left to
increase or decrease the column width.)
9.Align — alignment of variable entries. The SPSS default is to align numerical variables to the
right-hand side of a cell and string variables to the left. It is generally helpful to adhere to this
default; but if necessary, alignment can be changed by highlighting the relevant cell in the ninth
column and choosing an option from the drop-down list.
10. Measure — measurement scale of the variable. The default chosen by SPSS depends on the
data type. For example, for variables of type “numeric,” the default measurement scale is a
continuous or interval scale (referred to by SPSS as “scale”). For variables of type “string,” the
default is a nominal scale. The third option, “ordinal,” is for categorical variables with ordered
categories but is not used by default. It is good practice to assign each variable the highest
appropriate measurement scale (“scale” > “ordinal” > “nominal”)since this has implications for
the statistical methods that are applicable( Sabine & Brian,2004).

1.5 CREATING NEW VARIABLES

To create a new variable you can either use the dropdown menu in SPSS or you could use syntax
for SPSS. For this example, the dropdown menu will be used to create a new variable
 To start, go to the "transform" option on the menu bar.
 Then go down and click on "Compute Variable..."

7
Fig.6 Compute variable

 A new dialogue box will open


 Here you can specify the name of the new variable as well as how it will be constructed.
For this example, say we want to transform the X1 variable using a natural logarithm
 Here the new variable will be labelled as "ln_x1" in the "Target Variable" box
 In the Numeric Expression box we can then type out the equation for the new variable,
which is ln(x1).
 If the natural logarithm transformation is not of interest of if you wanted to use a different
transformation, the "Function group" provides a list of functions that you could be used
in the "Numeric Expression" dialogue box.
 Click on OK and the new variable "ln_x1" will be created.
1.5.1 Another way of computing a new variable is by using the "If" statement
 The same steps that were taken to create the natural log transformed X1 variable are
taken to create a new variable based on using the "If" Statement
 In the "Compute Variable" dialogue box click on the "If..." button in the bottom left hand
corner of the box.
 Here you will be able to specify the new variable that will be created
1.6 BEFORE THE DATA ENTRY
 You need a code book/scoring guide

8
 You give ID number for each case (NOT real identification numbers of your subjects) if
you use paper survey.
 If you use online survey, you need something to identify your cases.
 You also can use Excel to do data entry.
Example of a code book
A code book is about how you code your variables. What are in code book?
1. Variable names
2. Values for each response option
3. How to recode variables

Fig.7 code book


1.7 VARIABLE VIEW PATTERN
• Variable View with a data set already loaded in SPSS:
Entering Data
• File | Open an existing SPSS data document (.sav)
Or
• Manually Enter Data:
1. Define Variables in Variable View
2. Enter data in Data view
Or
• Read Data in from Excel
Manually Entering Data – Defining Variables
• In Variable View first name your variable in the Name column
• In the Type column click on the button to reveal the Variable type dialogue box and
select the appropriate variable type.
9
Fig.8 selection of variable type
• In the Values column Click on the button to reveal the Values Labels dialogue box.
Enter your values and corresponding labels for the variable you are defining if
appropriate

Fig .9 variable label


• Define “Measure” (specific variable type e.g. nominal/ordinal/scale)
• Directly enter the data values in Data View
1.8 READING IN DATA FROM EXCEL TO SPSS
• Two options:
1 – Copy data in excel and paste directly into the Data View screen
2 –Read in an excel file (.xls)
Warning:

10
• SPSS is much better at handling numeric variables than string variables (categorical data
entered as text).
• Therefore, if you want to transfer data from Excel to SPSS it is a good idea to ensure that
any categorical data (e.g. yes/no/don’t know, male/female, etc.) are entered in Excel as
numeric data (codes) rather than text.
• For example, you could always code ’No’ as 0 and ’Yes’ as 1, and so on.
Option 1: Copy and paste data from another spreadsheet directly into the Data Editor.

Option 2:

• 1 Start SPSS.

• 2 Select File → Open → Data

• 3 Change the Files of type field to Excel (*.xls)

• 4 Select your Excel file and click Open

• 5 Check that the box labelled “Read variable names from the first row of data” is ticked
and click OK (that is if the first row in excel contains your variable names, otherwise
leave un-ticked)

• 6 Your data should now appear in the SPSS data editor.

After reading in the data It is a good idea to ’tell’ SPSS what the codes for your categorical
variables are. This ensures that tables and graphs are labelled appropriately. More detailed
instructions:
1. Click on the Variable View tab in the bottom left hand corner of the data editor window.
2. Look at the row for the variable you’re dealing with and go to the Values column. Click
on the word None.
3. Click on the little grey square (with dots in it) on the right.
4. Enter the first value (code) — e.g. 0 — and the corresponding label — e.g. No — then
click on Add.
5. Repeat until you have entered all the labels & codes for this variable, then click OK.
6. Repeat this process for the other categorical variables.
Entering data
• Can also transfer in data from other databases

11
• Ideally use Stat/Transfer – commercially produced software package for transferring
data between spreadsheet software packages including Excel, Lotus , Paradox, Dbase and
Quattro Pro and statistical software packages.
• Import ASCII (text) files, File | Read ASCII Data
Shape of data
• SPSS usually requires data in wide format
• One row per observation (e.g. one row per patient)
• Columns represent the different variables
Rules for Defining Variable Names
• The name must begin with a letter.
• Maximum of 8 characters and no spaces.
• Names must be unique.
• @ # _ or $ allowed.
• A full stop can be used but not as the last character, so best avoided.
• The space character and others such as * ! ? And ‘ are not allowed.
• Names are not case sensitive so ID, id and Id are identical
• Certain SPSS keywords are no allowed as variable names they are:
ALL TO WITH BY AND
OR NOT EQ NE LE
LT GE GT
1.9 OUTPUT VIEWER
Where results of statistical analysis performed via analyze are displayed (will open
automatically when analysis is performed).

Fig 10 output viewer.

12
1.10 STORING AND RETRIEVING DATA FILES

Storing and retrieving data files are carried out via the drop-down menu available after
selecting File on the menu bar.
1.10.1 Saving the Dataset
A data file shown in the Data Editor can be saved by using the commands Save or Save
As…. In the usual Windows fashion Save (or from the toolbar) will save the data file under its
current name, overwriting an existing file or prompting for a name otherwise. By contrast, Save
As always
 In order to save the new dataset that has been imported into SPSS, we can click on the
File menu and then go down the save option
 Alternatively, we could also click on the button with the litle disk on it to save the file as
well
 Go to the folder in which you would like to save the file
 Type in a name for the dataset
 In this example, the dataset was called "Navel Data.sav".
 Once this is done then click "Save" and the file will now be saved as an SPSS dataset.
1.10.2 Opening the Dataset
To open existing SPSS data files we use the commands File – Open – Data… from the menu
bar (or from the toolbar). This opens the Open File dialogue box from which the appropriate file
can be chosen in the usual way . Recently used files are also accessible by placing the cursor
over Recently Used Data on the File drop-down menu and double clicking on the required file.
In addition, files can be opened when first starting SPSS by checking Open an existing data
source on the initial dialogue box (SPSS guide,2007) .

Before you perform analysis in SPSS, let’s set up the following option.

Go to Edit, Options,..

13
Fig.11 options

2.1 DESCRIPTIVE STATISTICS


Descriptive Statistics are numerical and graphical methods used to summarize data and
bring forth the underlying information. The numerical methods include measures of Central
tendency and measures of Dispersion.
 Measures of central tendency. The most common measures of central tendency are the
mean (arithmetic average) and median (value at which half the cases fall above and
below).
 Measures of dispersion. Statistics that measure the amount of variation or spread in the
data include the standard deviation, minimum, and maximum.
 Open the Frequencies dialog box again.
 Click Reset to clear any previous settings.

Fig.12 Frequencies

14
 Click Statistics.
 Select Mean, Median, Std. deviation, Minimum, and Maximum

Fig.13 Frequencies-Statistics
 Click Continue.
 Click OK to run the procedure.
The Frequencies Statistics table is displayed in the Viewer window

Fig.14 Output viewer of Descriptive Statistics


2.2 FREQUENCY DISTRIBUTIONS
The Frequencies procedure produces frequency tables that display both the number and
percentage of cases for each observed value of a variable..

 The first thing that would be done would be to go to the "Analyze" option on the menu
bar.
 Then go down to "Descriptives" and click on the "Frequency" option

15
Fig.15 Frequency Distribution

Fig.16 Frequencies-Statistics

 Click OK to run the procedure.

Fig.17 Frequency Table


16
The frequency tables are displayed in the Viewer window. The frequency tables reveal
that
only 20.4% of the people own PDAs, but almost everybody owns a TV (99.0%). These might
not be interesting revelations, although it might be interesting to find out more about the small
group of people who do not own televisions.
2.3 CHARTS FOR DATA
You can graphically display the information in a frequency table with a bar chart or pie chart.
 Open the Frequencies dialog box again. (The two variables should still be selected.)
You can use the Dialog Recall button on the toolbar to quickly return to recently used
procedures.

Fig.18 Frequencies- Chart

 Click Continue
 Click OK to run the procedure

Fig.19 Output viewer-Chart

17
In addition to the frequency tables, the same information is now displayed in the form of
bar Charts.

2.4 MEASUREMENT LEVELS - INTRODUCTION

The first step in data analysis is simply understanding what the data mean. In order to guide this
process, the social sciences often use the concept of measurement levels. Measurement levels are
classifications of variables. Each variable is classified as having one of the following four
measurement levels: ratio, interval, ordinal and nominal.

Fig. 20 matric variables

2.4.1 Level or Scale of Measure

Mainstream statistics recognises four levels or scales of measure. These are Nominal,
Ordinal, Interval, Ratio (combined with Interval as Scale in SPSS)

These are in order from most name-like to most number-like. Each level has its own
characteristics and association with a set of permissible statistical procedures. Below, the level
will be characterised and associated with one or more measures of central tendency, viz., mode,
mean, and median.

18
The Nominal level of measure is used for categorical data, where each value has each been
assigned to a discrete category. For instance, eye color of participants in a study might be
nominally (from Latin nomen for name) categorised into groups brown, blue, green, other

The only procedure for quantitative analysis of these data is counting, to discover
frequencies of occurrence. That is, how many individuals are assigned to each category. The
categories are often coded numerically (i.e., assigned a unique number) and named (using
the values attribute of the variable). The only measure of central tendency for nominal data is
the mode, which is the most frequently occurring category. Note that there is no guarantee that a
sample will produce a unique modal value.

Ordinal Data:The Ordinal level of measure is used for data which form discrete categories and
can be naturally ranked on some scale. This ranking is a weak ordering of the data in that two
values may share the same rank: the relative rank of a and b is: a < b or a > b or a While
income might be treated as a scalar variable, it is often useful to create categories out of income
ranges. As with nominal data, these groupings might each be represented by a numeric code.
The central tendency in ordinal data may be represented by the mode (defined above) and by
the median, the value that divides the data into equal halves.

Ratio data is all of: ordered, of comparable distance (successive, integral points on the scale are
equally spaced), and on a scale with a true zero point.

For example, consider the measurement of height in meters: some objects have no elevation,
which naturally maps to a height of zero meters. The values can also form ratios, such that any
value can be expressed as a ratio of other values. If we find, for example, three people of heights
1.5m, 1.75m and 2m, we can express any one of these as a multiple of any other.

The central tendency in scale data can be indicated by the mode, the median and
the arithmetic mean. The first two are discussed above. The arithmetic mean is the sum of all the
data values divided by the number of data points. In other words, it is what is commonly referred
to as the average.

19
2.4.2 Dichotomous, Categorical and Metric

Although four measurement levels have been defined, we often use a different classification for
practical purposes.
 Categorical variables are variables on which calculations are not meaningful. They thus
comprise nominal and ordinal variables. The distinction between these is of minor importance
because we often use the same analytical procedures for them.
 Metric variables are variables on which calculations are meaningful. They thus
comprise interval and ratio variables. It's rarely necessary to distinguish these and we virtually
always use the same analytical procedures from them.
 Dichotomous variables are variables that have only two distinct valid values. Dichotomous
variables are a special case of metric variables; calculations are meaningful and usually result in
a proportion or a percentage. It is useful to distinguish dichotomous variables as a separate
measurement level because they require different analytical procedures than other variables, such
as SPSS Independent Samples T Test and SPSS Binomial Test.

2.5 COMPARING MEANS

T-tests and z-tests are commonly used when making comparisons between the means of two
samples or between some standard value and the mean of one sample. There are different
varieties of t-tests which are used in different conditions depending on the design of the
experiment or nature of the data.

2.5.1 Find differences between groups


1. Click Analyze- Descriptive Stats- Explore (fig. 21)

2. Move a scale variable to dependent, move the category variable to factor- click Statistics
(fig.22)
20
3. Select Descriptors- click continue- click Plots (fig 23)

4. Select the following- click Continue(fig.24) 5. Click OK (fig. 25)

The results will appear

Table. 1 result

21
2.5.2 Independent t- test
Click Analyze- Compare Means- Independent Samples t test

Select the test variable and the grouping variable, then click Define Groups

Label the groups (in this case f or m) click OK

The results will appear

table. 2

22
Research Question ( Independent Samples t test )
A sample of students was administered a Math test (pretest scores). Afterwards, they
went through a special Math class designed to improve their scores. At the end of the course,
they were administered the same Math test (posttest scores). We want to determine if the Math
class was effective in increasing Math scores.] RQ: Is there a difference between mean pretest
and posttest Math scores?
Results
The following table presents descriptive statistics on the pretest and posttest Math scores. As can
be seen from this table, the sample mean Math score was higher at posttest (M = 88.4) than at
pretest (M = 82.1)
Table-3

2.5.3 One-way ANOVA


The One-Way ANOVA compares the mean of one or more groups based on one
independent variable (or factor). It can be used to determine if the mean score of some outcome
variable in all groups is the same or is different. However, when differences are found, ANOVA
results don't show which groups had significantly higher or lower. Multiple comparisons (post-
hoc tests) must be performed in order to assess this.

Click Analyze- Compare Means- One-Way ANOVA

23
Move the Numerical variable to the dependent list and move the categorical variable to the
Factor list

Click Options Select Descriptive -Continue- PostHoc

Select Tukey then Continue click OK

Results will appear (table. 4)

The stars tell you where the significant differences occur

24
Research Question (ANOVA)
A sample of students has been randomly assigned to three groups. Each group attended
one specific Reading class. Afterwards, all students were administered a standardized test. The
objective is to determine which class (if any) was associated with the highest average test score]
RQ: Are there differences in the mean Reading test scores among students in Classes A, B &C?
Results- The following table presents descriptive statistics on the Reading test scores by Class:
Table-5

Tukey's I-15D was used to conduct multiple comparisons among the three groups. Results
showed that students in Class C had a significantly higher score than students in Class A (p =
0.033).
2.6 CORRELATION ANALYSIS
Correlation is a measure of relationship between two variables. The Correlation
coefficient gives a mathematical value for measuring the strength of the linear relationship
between two variables. In the SPSS program, there are three types of correlation coefficients:
Pearson’s, Kendall’s tau-b, and Spearman’s. While Pearson’s coefficient is commonly used for
continuous data, the other two are used mainly for ranked data.

2.6.1 Pearson's Correlation Coefficient


Pearson's correlation coefficient is used to measure the degree of association between two
variables. This coefficients varies from -1 to +1, with values close to -1 indicating strong
negative correlation (i.e. high values of one variable are associated with low values of the other
one); values close to +1 indicating strong positive correlation (i.e. high values of one variable are
associated with high values of the other one) and values close to 0 indicating weak or no
association at all between the two variables. It is also possible to determine if the estimated
coefficients are significantly different from zero; that is, if there is 'some' association between the
variables. This is given in the SPSS output for correlations.

25
In SPSS
Under the Analyze menu, choose Correlate, then choose Bivariate. Move all variables you are
interested in correlating to the "Variables" box. Make sure that "Pearson" is checked in the
Correlation Coefficients box. This will produce a correlation matrix which shows the correlation
coefficients among all possible pairs of variables from the ones selected.

2.7 NONPARAMETRIC TESTS


The Nonparametric Tests are based on counted or ranked data rather than on measured values.
Nonparametric tests do not require assumptions about the shape of the distributions from which
the data originate( Best & Kahn,1995).

2.7.1 Chi-Square Goodness of Fit Test


The Chi Square Goodness of Fit test determines if the observed frequencies associated to
some variable are different from what we would expect to find. For example, we might expect to
see equal numbers in each group within a variable, or any other given proportion (i.e. 40% in
group A, 50% in group B and 10% in group C).
In SPSS
Under the Analyze menu, choose Nonparametric Tests, then Chi Square. Move the variable you
wish to look at into the "Test Variables" box. In the "Expected Values" box, enter the expected
frequencies for each of the categories of the variable, or choose "All categories equal" if testing
the assumption that the proportion for all groups is equal.
Research Question
Are the preferences among products A, B and C equally distributed?
Results: The following table presents the frequency distribution of preferred products
Table-6

26
From this table, 66.7% of males stated they would vote for Candidate A, while 45.5% of
females stated they would vote for that candidate. However, results of Pearson's chi-square test
showed that there was no relationship between gender and preference for Candidate A (Chi-
Square(1) = 0.9, p = 0.343).

2.7.2 Multiple Linear Regression


Multiple linear regression analysis is also a special case of the GLM, and thus requires
the dependent variable (it can only use one dependent variable) to be continuous. This analysis
can be used when all of the independent variables (which can be one or more) are continuous as
well. Multiple linear regression can also be set to use categorical independent variables, but they
must be dummy coded in order to do so. For example, variable "gender" could be coded as a 0-1
variable, with 0 representing males and 1 representing females. Categorical variables with more
than two categories must more 0-1 variables.
In SPSS
Under the Analyze menu, choose Regression, then choose Linear Move the dependent
box labeled "Dependent," and move all independent variables into the box labelled
"Independent(s)"
Research Question
RQ: What is the effect of IQ and gender on Math test scores?
Results
Multiple linear regression was conducted, using Math score as dependent variable and IQ and
gender (coded with a 0 for males and 1 for females) as independent variable. Results are
presented in the following table:
Table-7

Dependent Variable: MathScore

27
The R-Squared estimate was 0.433, suggesting that IQ and gender explained 43.3% of the
variability in Math scores. As can be gleaned from the above table, only IQ was significantly
related to Math Score (b = 0.945, p = 0.003). This suggests that each 1-point increase in IQ was
associated, on average, to a 0.945-point increase in Math test scores.

2.8 CLOSING SPSS


 To close SPSS there are two options.
These include:
 Clicking the x button in the upper right hand corner or
 By going to the "File" option on the menu bar and clicking "Exit"

28

You might also like