Introduction to SPSS Syntax: Hands-On Exercises
1.5 (2 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
10 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Introduction to SPSS Syntax: Hands-On Exercises to your Wishlist.

Add to Wishlist

Introduction to SPSS Syntax: Hands-On Exercises

How to save 4 hours a day for analysis and repetitive tasks with SPSS syntax and programming
1.5 (2 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
10 students enrolled
Created by Doctor Analytix
Last updated 1/2017
English
Current price: $10 Original price: $20 Discount: 50% off
5 hours left at this price!
30-Day Money-Back Guarantee
Includes:
  • 2.5 hours on-demand video
  • 31 Supplemental Resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Learn the basic skills of SPSS Statistics syntax for use in repetitive production tasks
  • Solve everyday analysis tasks in less time and with not effort
  • Learn how to use commands that are not available by using the GUI
  • Learn the terminology and command syntax diagram to get the best from SPSS.
  • Learn how to use the Log and Journal file appropriately.
  • Learn how to execute transformation commands and procedures with syntax commands
  • Learn how to create SPSS syntax file without dialog boxes and get your results easily!
  • Learn how to use DO IF—END IF command
  • Learn how to use LOOP — END LOOP command
  • Skills learned are applicable and widely transferable to an incredibly wide variety of scenarios.
View Curriculum
Requirements
  • A familiarity of SPSS: you should have experience in SPSS Statistics using the graphical user interface (dialog boxes)
  • Have SPSS Statistics Standard (version >17) for Windows or Mac installed and functioning,
Description

LATEST: The course is updated to Jan 2017.

=== This is the FIRST COURSE ever on Udemy of SPSS SYNTAX programming ===

Hi I am Doctor AnalytiX and I have spent many years on testing what really works in SPSS to get results in very short time, and now I want to share with you how to prepare data and how to automate tasks in a few simple steps.

I have trained hundreds of people in these years and explained how to use SPSS syntax programming in several live training sessions and now you have the chance to follow me lifetime.

This course will teach you how to use this 'behind the scene' language and other features for data management and manipulation, and for overall control of SPSS execution.

There will be an "in-depth" details about the Syntax language: useful and relevant examples and exercises that shows how Syntax can make your analysis more efficient, more transparent and more easy.

This awesome program includes:

  • great exercises with solutions end codes.
  • useful handouts.
  • handy checklists.
  • interesting projects.
  • exiting quizzes.

Don't you think it possible to add percentage signs to your data? With SPSS syntax it will be very easy! Only a very limited number of people know this information. In only 3 hours you can learn how to automate repetitive tasks and how to perform additional options that are not available in the dialog(ue) boxes in SPSS. You can easily transform your analysis process in simple steps, record and reuse them whenever you need.

Is my course better than another? I don't think so, but what I have learned after 15 years of training and statistic projects is how to save 4 hours a day making analysis and repetitive data management tasks thanks to SPSS, by using simple syntax commands.

Creating a syntax script for SPSS automation is very easy, you don't need to know any special programming language or any complex tools, you just have to know SPSS.

Given the obvious advantages of using a graphic user interface, you can wonder why anyone could want to program by using the syntax. Actually, there may be many situations in which the use of the syntax is preferable or even essential. Here are some examples in which the syntax is preferable to the "point-and-click" method:

  • If you have to create weekly or monthly reports: instead of recreating the commands, by using the menus each time, you can save them in a syntax file for later reuse.
  • If you have to use commands that are not available by using the dialog(ue)s: some subroutines for reading complex data structures, transformations like structures "do if" and "loop" and macros, you can get only by using the syntax.
  • If you have to create multiple tables or graphics: the syntax allows you to create them in a single step, whereas, by using the menu, you can only generate them one by one.
  • If every month you run the same SPSS commands, but the name of the database changes every time you run the analysis: you can change the file name using "Syntax Editor", and re-use the rest of the commands, rather than redefining from the beginning the file by using the menu every time.

This course provides students with a greater understanding of a variety of programming techniques along with the procedure to use the most popular statistical software package, SPSS. The course will serve the students as a self-learning material of using SPSS for applying analysis and data management tasks, programmatically.

The course has been written to provide solutions to the students in different disciplines. The course is intended for everybody works on data analysis, statistics, strategic decision-making process or quantitative methods taught in management and other disciplines like psychology,economics, education, nursing, medical, or other behavioral and social sciences. This course is also useful for IBM SPSS certification exams..

Customer satisfaction is my main concern. Feel free to contact me for any questions, concerns or problems. We can work it out to make you feel satisfied with what you are getting. If things doesn't work out for you, we have a 30-day money back guarantee. I assure you that you won't regret this.

Already excited? Join me and let's do SPSS programming together.

Trademark legal notice:

All product names, logos, and brands are property of their respective owners. All company, product and service names used in this website are for identification purposes only. Use of these names, logos, and brands does not imply endorsement.


Who is the target audience?
  • The course will serve the students as a self-learning material of using SPSS for applying analysis and data management tasks, programmatically.
  • The course is intended for everybody works on data analysis, statistics, strategic decision-making process or quantitative methods taught in management and other disciplines like psychology,economics, education, nursing, medical, or other behavioral and social sciences.
  • This course is also useful for IBM SPSS certification exams.
  • The Course is for who are responsible for using and maintaining SPSS syntax jobs
Students Who Viewed This Course Also Viewed
Curriculum For This Course
43 Lectures
02:16:04
+
Introduction to SPSS syntax
3 Lectures 08:16

In this step by step course I am going to teach you “SPSS Syntax Essentials”.

Before we begin the course, I just want to explain a few very important points.

Preview 02:15

With Syntax you can skip the menus and dialog boxes and insert commands directly into SPSS.

After only 1 hour of course you will learn how to perform transformations and reporting tasks with syntax programming.

In the next hour you will learn how to:

  • Recode variables.
  • Add value and variable labels.
  • Reporting.
  • Re-use syntax on other files.

It's really easy to do, just follow me.


Preview 04:16

There may be many situations in which the use of the syntax is preferable or even essential.

  • If you have to create weekly or monthly reports
  • If you have to use commands that are not available by using the dialog(ue)s
  • If you have to create multiple tables or graphics
  • If every month you run the same SPSS commands, but the name of the database changes every time you run the analysis


Learn when the Syntax is preferable to the method "point-and-click" [765]
01:45
+
Working with syntax - Getting Started
10 Lectures 40:08

Learn how to make the best use of this course: download data and syntax files.

The command files and data files used in the examples are included in the Zip file that contains this lecture.

  1. Please click 'View Resource' button in this lecture and download the file 'SyntaxFiles.zip'.
  2. Then create a new folder 'syntax' in drive C:
  3. Extract all zipped file into 'c:\syntax\'


  • Most of the examples shown in this course are designed as hands-on exercises that you can perform yourself.
  • Note: please don't copy files on desktop because is a bit complicated to write that path every time in the syntax file.
  • Note: please check if SPSS Statistics is installed correctly. In the course I've used SPSS Statistics 22 for Windows. (if you dont have SPSS, please download the trial version (link and complete setup files are provided in this lecture) or use a FREE remote desktop with SPSS Statistics 23 already installed, yes it's working!! (link provided in this lecture too).

==== NOTE ====

Here in the lectures you see a "Lecture ID" like [254] for this lecture. It is useful to link each lesson with the correct datasets and syntax files you find in the syntaxFiles.zip

To use the syntax file, use the menu (FILE > OPEN > SYNTAX) and use 'Run all' to execute all the syntax code, or 'Run selection' to execute just the code selection.


Learn how to make the best use of this course. [254]
01:46

In this lecture we will see how the Syntax Editor provides an environment specifically designed for creating, editing, and running command syntax.

Also you will learn how to use :

  • The Auto-Completion feature
  • The Color Coding feature
  • Breakpoints
  • Bookmarks
Syntax editor [342]
05:06

To set properly a syntax file you need to follow these guidelines:


  1. Develop simple syntax using the dialog box
  2. Be aware of 'Pending changes'
  3. Check the correct syntax step by step
  4. Erase the results in the viewer
Checklist: follow these guidelines to set a syntax file properly [901]
03:02

SPSS provides a number of tools to make your job easier: learn how to use the Log and Journal file appropriately.
The Output Log and the Journal File [455]
03:35

SPSS will help you write by your own Command Syntax statements.


Learn the terminology and command syntax diagrams to get the best from SPSS.

Getting Help in SPSS [456]
03:43

A short quiz to check how confident you are with 'Syntax Editor'


Quiz1 - The syntax editor
3 questions

A short quiz to check how confident you are with 'Getting Help' with SPSS.

It is very important to answer correctly to all questionsm because it is the most important thing to know in SPSS Syntax.

Quiz2 - Getting Help
7 questions

A short quiz to check how confident you are with 'Working with syntax' with SPSS.

Quiz3 - Working with syntax
4 questions

There are some really, really good reasons to use the syntax as well.

  • Efficiency 
  • Log of analysis
  • Project Documentation 


Three really good reasons to use the syntax as well [454]
03:03

Learn what 'command', 'subcommand' and 'keyword' are.

Preview 02:56

Syntax diagrams are important for understanding how to write and edit all the Syntax commands.

Each command includes a syntax diagram that shows all of the subcommands, keywords, and specifications allowed for that command.

By recognizing symbols and different type fonts, you can use the syntax diagram as a quick reference for any command.


Syntax Diagrams [631]
06:26

The goal of this exercise is to use understand the T-TEST command (its syntax diagram) for comparing sample means by calculating Student’s T, and displays the two-tailed probability of the difference between the means.

Statistics for T-test are available for:

  • one-sample (tested against a specified value).
  • independent samples (different groups of cases)
  • paired samples (different variables).

Please see the text the exercise in the video lesson or in the resources.

Exercise - Syntax Diagram [631E]
00:30

It is very important to know that there are 4 program states in SPSS: 

  1. Initial
  2. Input
  3. Transformation
  4. Procedure.

Each session starts in the initial state, followed by the input program state, the transformation state, and the procedure state.

This order conforms very closely to the order the program must follow as it processes your commands

Specifically, the program checks command order according to the program state through which it passes. The program state is a characteristic of the program before and after a command is encountered.

Program States [1589]
10:01
+
Running Syntax commands
15 Lectures 01:12:55

The most used command types in SPSS syntax are the following:

1.File Definition Commands
2.Transformation Commands
3.Procedure Commands


1. File Definition Commands: all these commands are used to input data into SPSS. They include commands such as `GET`  , `DATA LIST` , or `MATCH FILES` 

2. Transformation Commands: These commands are varied: they modify data (`COMPUTE, RECODE` ), create new variables(`VECTOR` , `NUMERIC` ), or label data (`VARIABLE LABELS` ). It is important to know that transformations do not cause SPSS to read the data file.

3. Procedure Commands: A procedure in SPSS is a command that causes data to be read. In other words, all of these commands analyze data. In that way, `FREQUENCIES`  is also a procedure because it causes the data to be read.

Types and execution of commands [771]
04:44

The command is used when you need to summarize groups of cases within a dataset into single cases using predefined functions (average, percentage, etc.). In other words it is effective for combining cases into groups and creating a dataset with one case for each group. 

AGGREGATE command [444]
09:50

In this guide we will learn how to use some useful commands of SPSS syntax, like:

  • RENAME VARIABLES.
  • FORMATS.
  • STRING.
  • VARIABLE LABELS.
  • VALUE LABELS.
  • MISSING VALUE.
Useful commands of SPSS Syntax [1290]
04:59

The solution of this exercise is in the tutorial with the same topic.

Exercise of Useful commands of syntax [1290E]
01:19

Learn how to use DO IF—END IF command to run one or more transformations on a subset of cases.

DO IF--END IF command [2341]
06:00

Exercise to learn how to use DO IF—END IF command.

Preview 00:46

Another exercise to learn how to use the IF command

Exercise - IF [101E]
00:29

Once you have a set of commands, you can run the commands in a number of ways.

  • Highlight the commands that you want to run in a command syntax window and click the Run button.
  • Invoke one command file from another command with the INCLUDE command or INSERT FILE command.
  • Use the Production Facility” to create production jobs that can run and even start whenever you need using common scheduling software.

Now we see how to Invoke one command file from another command with the INCLUDE command or INSERT FILE command.

INCLUDE and INSERT commands [2587]
06:40

Learn how to write syntax file in Batch mode or Interactive mode.
INSERT and INCLUDE command - Appendix [2578A]
01:45

A short quiz to check how confident you are with 'Running Commands' with SPSS.

Quiz4 - Running Syntax commands
5 questions

The Temporary command allows you to temporarily transform the data without making permanent changes. The transformation works for the very first procedure, then it reverts back to the original values.

TEMPORARY command [4589]
05:16

Learn how to use LOOP — END LOOP command to perform transformations on the same case repeated until is reached a specific condition.

LOOP — END LOOP command [5431]
09:09

Append: when we have two or many data files and we may want to combine their cases, we use the append process via ADD FILES  command. 

Merge: When we have two data files, we can combine them by merging them side by side, matching up observations based on an identifier. 

APPEND and MERGE files [13010]
14:37

This exercise is to learn how to use Append (ADD FILES) and Merge (MATCH FILES) commands.

Exercise - Append and Merge [13010E]
01:47

Recode command as the name suggest is used to re-assign the value of a variable (existing or new) to some different values. 

RECODE command [3458]
04:55

This exercise is to learn how to use RECODE command.

Exercise - RECODE command [3458E]
00:39
+
Statistical analyses with syntax - YOUR TURN
6 Lectures 04:39

Please solve this exercise and send me your solution with syntax file and comments and I will publish it!

Preview 00:44

Here there is not the solution. Send me your solution with syntax file and comments and I will publish it with your name - if you agree with that.

Mean Differences Between Groups [4700]
00:44

Here there is not the solution. Send me your solution with syntax file and comments and I will publish it with your name - if you agree with that.

One-Factor ANOVA [4800]
00:39

Here there is not the solution. Send me your solution with syntax file and comments and I will publish it with your name - if you agree with that.

Two-Factor ANOVA [4900]
00:44

Here there is not the solution. Send me your solution with syntax file and comments and I will publish it with your name - if you agree with that.

Bivariate Plots and Statistics [41000]
00:53

Here there is not the solution. Send me your solution with syntax file and comments and I will publish it with your name - if you agree with that.

Preview 00:55
+
Solutions to Exercises
5 Lectures 04:31

Here the solution of exercise on 'syntax diagram'

Exercise solution - Syntax Diagram [631E solution]
01:12

Here the solution of exercise on 'DO IF END IF'

Exercise solution - DO IF [2341E solution]
00:46

Here the solution of exercise on 'IF'. 

Exercise solution - IF [101E solution]
00:38

Here the solution of exercise on 'APPEND AND MERGE FILES'. 

Exercise solution - APPEND and MERGE files [13010E solution]
01:14

Here the solition of exercise on 'RECODE'. 

Exercise solution - RECODE command [3458E solution]
00:41
+
PROJECTS
4 Lectures 05:35

Project description: The financial director of the bank branch in New York wants to make an analysis of the salaries of employees of New York and Amsterdam branches.

His goal is to calculate some main indicators and produce some insights.

So he asks his SPSS analyst to produce these analysis, both for the New York and the Amsterdam branch.


Can you help him as well?

Preview 01:12

Here you can find the solution with comments and code.

RECAP 1 - solution [7001P solution ]
01:38

Project description: The credit risk team want to make an analysis about the credit risk ralated to the number of card and the paytype (monthly or weekly) of their customers. The main indicator about the credit risk will be the mean of the credit cards owned by customers

RECAP 2 - let's do a PROJECT together via syntax [7002P]
01:26

Here you can find the solution with comments and code.

RECAP 2 - solution [7002P solution]
01:19
About the Instructor
Doctor Analytix
1.5 Average rating
2 Reviews
10 Students
1 Course
Professional Trainer

I am a technical and highly accomplished statistician with demonstrated experience in delivering high-level technical projects

I am passionate data mining, predictive analytics and Big Data trainer and consultant with 15+ years of experience.


I love to do:

• Statistics, Data Mining, Business Intelligence and Big Data.


My favorite analytics platforms and software are:

• IBM SPSS Statistics.

• IBM SPSS Modeler.

• Rapid Miner.

• R ; Python; Matlab for programming.

• SQL server for Business Intelligence.

• Hadoop technlogies