Вы находитесь на странице: 1из 49

Prof. Ma. Paz N. Marquez / Ryan T.

Descallar
Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Overview of

The Data View


The Variable View
Reading an Excel worksheet file

Working with syntax


Saving files

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Uses of SPSS in Data Analysis


Starting an SPSS Session
SPSS Editors/Windows
Menu System: Options available in the Editors
Toolbars
Dialog Boxes
Reading a data file

Outline of Presentation

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Statistical
Package for the
Social
Sciences

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

A comprehensive integrated software


package for statistical data analysis.

Statistical Package for the


Social Sciences (SPSS)

Uses of SPSS

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Perform statistical analyses


Prof. Ma. Paz N. Marquez/Ryan T. Descallar
Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Produce charts and graphs of results

Transform and create new variables

Manipulate data

Store data

SPSS allows you to

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Data are entered using a spreadsheet and


results are displayed in a separate output
window.
The data and output can be saved
independently for the next work session.
The output tables can be copied to word
processing or presentation applications for
inclusion in papers or presentation slides.

In SPSS,

Starting an SPSS
Session

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Double click the SPSS icon using the left


mouse button
OR
Select SPSS from the 'Programs' list in the
menu
 Double click on SPSS 16 for Windows

To start an SPSS session:

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

SPSS Editors/Windows

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

 Data View sheet - allows one to edit the


data
 Variable View sheet - allows one to edit
information about the data

Displays the contents of the data file


Comprised of the:

1. Data Editor

SPSS Editors/Windows

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Displays all statistical results, tables and


charts
Opens automatically when the first piece
of output is produced in an SPSS session
Note: Output may be edited using the
various editor windows and saved for
later use.

2. Output Viewer

SPSS Editors/Windows

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

SPSS Syntax may be written or pasted


into this window, usually for the purpose
of adding commands not available
through the dialog boxes or for
automating data analysis or file
manipulation procedures.

3. Syntax Window

SPSS Editors/Windows

Allows the modification of Output displayed in


Pivot Tables
Text may be edited, data in the tables may be
swapped, color may be added and results may
be selectively shown or hidden

Allows the modification of Text output not


displayed in pivot tables
In addition to editing the text, font
characteristics may also be changed

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

5. Text Output Editor

4. Pivot Table Editor

Other SPSS Editors/Windows

Allows for the modification of standard


charts and plots

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Allows for the modification of threedimensional high-resolution charts

7. Interactive Charts Editor

6. Standard Charts Editor

Other SPSS Editors/Windows

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Each window has its own specific


menu system and toolbar.

Menu System and Toolbar

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Options available in the Data Editor Window

Menu System of the Data Editor

To create a new SPSS file, open an existing file, or


read spreadsheet or database files created by
other software programs, to print the contents of
the Data Editor and to exit the system

To cut, copy and paste data values, to find data


values and to change option settings

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

To display gridlines, labels, the status bar and


toolbars, and to change the display font

View

Edit

File

Data Editor Window: Options

permanent file unless you explicitly save the file with


these changes.

 Note: Changes are only temporary and do not affect the

To make global changes to SPSS data files, such


as merging files and creating subsets of cases for
analysis

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

To make changes to selected variables in the data


file and to compute new variables based on the
values of existing ones

Transform

Data

Data Editor Window: Options

To select the various statistical procedures you


want to use, e.g., cross tabulation, analysis of
variance, correlation and linear regression

Editor.

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

 Note: Some statistical procedures also generate graphs.


 Note: All graphs can be customized with the Chart

To create bar charts, pie charts, histograms,


scatter plots and other full-color, high-resolution
graphs

Graphs

Analyze

Data Editor Window: Options

To display information on the contents of an SPSS


data file, or to control the list of variables that
appear in the various dialog boxes

To switch between SPSS windows and manipulate


how they appear on the screen

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

dialog boxes, and through activated pivot tables by


clicking the right mouse button on the item required.

 Note: Context sensitive help is also available through the

Offers a range of procedures containing information


on how to use the many features of SPSS

Help

Window

Utilities

Data Editor Window: Options






All
Selection
Current
To End

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

To run all commands


To run a selection of commands
To execute the current command
To execute the commands from a specific
point up to the end of the program
statements

Use the Run option to execute commands written in


the syntax window.

Additional option: Run

All options available in the Data Editor except


Transform.

Syntax Editor Window: Options

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Both options are useful in enhancing the


format of the output.

Additional options: Insert and Format

All options in the Syntax Editor except


Run.

Output Editor Window: Options

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

The function of any tool can be obtained by placing


the cursor over the tool in question and referring to
the left of the status bar at the bottom of the
application window, or the explanation label that
appears.

Provides quick and easy access to many frequently


used facilities and contains commands specific to
that particular window

Present in all Editors/Windows

The Tool Bar

The Dialog Box

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

 Displays the variables you have chosen for the analysis

Target variable list

procedure are displayed in the source list.

 Note: Only variable types allowed by the selected

 Shows the variables in the working data file

Source variable list

A special window that appears when


procedures are requested
The main dialog box for statistical procedures
and charts has the ff. components:

Dialog Box

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Source variable list

Dialog Box
Target variable list

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Source variable list

Dialog Box

Command buttons

Options
buttons

Target variable list

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Activate the relevant area of the SPSS Help facility. This is


context sensitive so selecting the Help button in the
Frequencies command will provide help in generating
univariate tables.

Cancel the options requested and quit the dialog box without
executing the procedure

Cancel any specification made within the dialog box but keeps
the box open to enable you to request new output

Paste SPSS command syntax into the Syntax window

Execute the procedure as set up in the dialog box

an action

 Buttons that instruct SPSS to perform

Dialog Box: Command Buttons

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Opening a Data File

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

A spreadsheet that displays


the actual data values or
defined value labels

The Data View

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Displays the name of application, SPSS


and the current window.

Title bar

The Data View

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

The window you are currently using or that is


currently selected.
Keystrokes and commands are applied to the
active window.

Active Window

The Data View

Menu Bar

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Clicking once on a word on a menu bar opens the


associated menu, from which you can select a
command.

The Data View

Tool Bar

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Contains commands specific to that particular window

The Data View

Spreadsheet

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Area where one enter the values and


define the variables
 Each column refers to a variable and
each row refers to a case

The Data View

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

The cell in which typing will appear and


indicated by a dark border
A different cell can be made active
active by clicking on it, or by using the
tab, return, and cursor key to move to it

Active Cell

The Data View

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

A spreadsheet that lists all the


variables rather than data
Contains information about all
the variables
Rows are variables; columns
are variable attributes

The Variable View

Width

Decimals -

Label

Values

3.

4.

5.

6.

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Type

2.

1. Name

(Can be up to 60 characters long)

Value labels for any category codes

(Can be up to 256 characters long)

Variable label for the variable

Number of decimal places

Character width of the variable

Type of variable
(Numeric, String or Others)

Variable name
(No more than 8 characters in length)

Variable Attributes

Columns -

Align

8.

9.

Specifies the alignment of values within


the column

Changes the display width of the


column (Note: This can also be done
directly in the data viewer using the
mouse.)

Specifies which codes should be treated


as missing and hence excluded from
most analyses

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

10. Measurement - Level of measurement for the variable


(Note: The term 'Scale' indicates a
continuous variable)

Missing -

7.

Variable Attributes

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

 SPSS assumes all the information that it is


reading are data values.
 The location of the variable names should be
specified to differentiate between the variable
names and data values.
 It classifies data values in terms of the data type
(e.g., whether the columns contain string or
numeric data).

Rules when reading data from a spreadsheet


to SPSS:

SPSS can read a worksheet and given a range


to read, make a copy of the data in its own
data window.

Reading an Excel worksheet file

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Working with Syntax

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

SPSS provides a powerful command language that


allows you to save and automate many common
tasks. It also provides some functionality not found in
the menus and dialog boxes

Working with syntax

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

A command syntax file is simply a text


file that contains SPSS commands.
You can open a syntax window and
type commands directly, but it is often
easier to let the dialog boxes do some
or all of the work for you.

Working with syntax

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

The easiest way to create syntax is to use the Paste


button located on most dialog boxes

Creating a syntax file

The slash before the first subcommand on a command is


usually optional.

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Variable names must be spelled out fully.

Command syntax is case insensitive, and three-letter


abbreviations can be used for many command
specifications.
Ex.: fre can be used for FREQUENCIES

Most subcommands are separated by slashes (/).

Each command must begin on a new line and end


with a period (.).

Syntax rules

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

You can add space or break lines at almost any point


where a single blank is allowed, such as around
slashes, parentheses, arithmetic operators, or
between variable names.

You can use as many lines as you want to specify a


single command.

Each line of command syntax cannot exceed 80


characters.

Text included within apostrophes or quotation marks


must be contained on a single line.

Syntax rules

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

SPSS automatically adds a three-letter suffix


end of the file name
Type of file
 Thus, with a particular
data set, use a single
Data file
name for the prefix of all
three files and let the
Output file
suffix distinguish among
the different file types.
Syntax file

.sps

.spv

.sav

Suffix

to the

To save a file, make that particular window active.


 Once you have activated the desired window, click
on File and then Save.

Saving files

Prof. Ma. Paz N. Marquez/Ryan T. Descallar


Training on Data Analysis Using SPSS
20-24 October 2008
UPPI Computer Laboratory

Now were ready to create a


sample data

Вам также может понравиться