© copyright 2000, julia hartman 1 next an interactive tutorial for spss 10.0 for windows © by...

13
© Copyright 2000, Julia Hartm © Copyright 2000, Julia Hartm an an 1 Next An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Using Command Syntax

Upload: caroline-holmes

Post on 29-Dec-2015

217 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: © Copyright 2000, Julia Hartman 1 Next An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Using Command Syntax

© Copyright 2000, Julia Hartman © Copyright 2000, Julia Hartman 11

Next

An Interactive Tutorial for SPSS 10.0 for Windows©

by

Julia Hartman

Using Command Syntax

Page 2: © Copyright 2000, Julia Hartman 1 Next An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Using Command Syntax

© Copyright 2000, Julia Hartman © Copyright 2000, Julia Hartman 22

SPSS Command Syntax:SPSS Command Syntax:

IntroductionIntroduction

Next

Most commands are accessible from the menus and dialog boxes. However, some commands and options are available only by using the command language. The command language also allows you to save your jobs in a syntax file so that you can repeat your analysis at a later date….

According to SPSS Help:

A syntax file is simply a text file that contains commands.

Page 3: © Copyright 2000, Julia Hartman 1 Next An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Using Command Syntax

© Copyright 2000, Julia Hartman © Copyright 2000, Julia Hartman 33

SPSS Command Syntax:SPSS Command Syntax:

IntroductionIntroduction

Next

This tutorial shows how to

• Open a syntax window

• Type in the commands

• Run the command syntax

Command syntax can also be entered into a syntax window by using the Paste button in most dialog buttons.

Page 4: © Copyright 2000, Julia Hartman 1 Next An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Using Command Syntax

© Copyright 2000, Julia Hartman © Copyright 2000, Julia Hartman 44

SPSS Command Syntax: SPSS Command Syntax:

Opening a Syntax WindowOpening a Syntax Window

• In the menu, click File

To open a new syntax window:

Page 5: © Copyright 2000, Julia Hartman 1 Next An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Using Command Syntax

© Copyright 2000, Julia Hartman © Copyright 2000, Julia Hartman 55

SPSS Command Syntax: SPSS Command Syntax:

Opening a Syntax WindowOpening a Syntax Window

• In the menu, click File

• Point to New

To open a new syntax window:

Page 6: © Copyright 2000, Julia Hartman 1 Next An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Using Command Syntax

© Copyright 2000, Julia Hartman © Copyright 2000, Julia Hartman 66

SPSS Command Syntax: SPSS Command Syntax:

Opening a Syntax WindowOpening a Syntax Window

• In the menu, click File

• Point to New

• Point to Syntax

To open a new syntax window:

Page 7: © Copyright 2000, Julia Hartman 1 Next An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Using Command Syntax

© Copyright 2000, Julia Hartman © Copyright 2000, Julia Hartman 77

SPSS Command Syntax: SPSS Command Syntax:

Opening a Syntax WindowOpening a Syntax Window

• In the menu, click File

• Point to New

• Point to Syntax

To open a new syntax window:

…and click

Page 8: © Copyright 2000, Julia Hartman 1 Next An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Using Command Syntax

© Copyright 2000, Julia Hartman © Copyright 2000, Julia Hartman 88

SPSS Command Syntax: SPSS Command Syntax:

Opening a Syntax WindowOpening a Syntax Window

When the syntax window opens in SPSS, you type the commands. However, it is not possible to type in this tutorial.

Click inside the syntax box to see the typed text.

Page 9: © Copyright 2000, Julia Hartman 1 Next An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Using Command Syntax

© Copyright 2000, Julia Hartman © Copyright 2000, Julia Hartman 99

SPSS Command Syntax: SPSS Command Syntax:

Entering the CommandsEntering the Commands

These are the commands for computing the dummy variables used in the ANCOVA (Regression Approach) tutorial. Note that each command ends with a period.

Click Run in the syntax window menu to run the syntax commands.

Page 10: © Copyright 2000, Julia Hartman 1 Next An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Using Command Syntax

© Copyright 2000, Julia Hartman © Copyright 2000, Julia Hartman 1010

SPSS Command Syntax: SPSS Command Syntax:

Running the Syntax CommandsRunning the Syntax Commands

• Point to All

Page 11: © Copyright 2000, Julia Hartman 1 Next An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Using Command Syntax

© Copyright 2000, Julia Hartman © Copyright 2000, Julia Hartman 1111

SPSS Command Syntax: SPSS Command Syntax:

Running the Syntax CommandsRunning the Syntax Commands

• Point to All and click.

Page 12: © Copyright 2000, Julia Hartman 1 Next An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Using Command Syntax

© Copyright 2000, Julia Hartman © Copyright 2000, Julia Hartman 1212

SPSS Command Syntax: SPSS Command Syntax:

Results of the Syntax CommandsResults of the Syntax Commands

The two new variables (dmajor1

and dmajor2) are created at the end of the datafile. Values are assigned according to the value of the variable bmaj2.

Page 13: © Copyright 2000, Julia Hartman 1 Next An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Using Command Syntax

© Copyright 2000, Julia Hartman © Copyright 2000, Julia Hartman 1313

An Interactive Tutorial for An Interactive Tutorial for SPSS 10.0 for WindowsSPSS 10.0 for Windows©©::SPSS Command SyntaxSPSS Command Syntax

• Repeat this tutorial

Click one of the following:

• Return to the list of tutorials