SPSS Training - Day 4 - Using Syntax
This day will concentrate on translating analytical processes to SPSS syntax (programming language). In so doing, we will consolidate the learning of the first three days, but focus instead upon using syntax to facilitate efficient working, including:
- Understanding syntax structure.
- Using the Paste button, and automatic production of syntax commands.
- Using syntax help.
- Preparing a syntax file, running it from a toolbar button.
- Setting variable properties: VARIABLE, VALUE LABELS, FORMATS, MISSING VALUES.
- Setting up data: DATA LIST, NEW FILE, GET FILE.
- Stating your variable set: ALL, BY, WITH, TO.
- Using scratch and system variables.
- Logical testing: EQ, GE, GT, LT, NE, AND, OR, NOT, IF.
- Selecting cases: SELECT IF, USE, FILTER, TEMPORARY.
- Taking alternative pathways: DO IF, ELSE IF, END IF.
- Repeating a process: DO REPEAT, END REPEAT, LOOP, END LOOP.
- Macros DEFINE, !ENDDIFINE.
- How to use the Production Mode facility for "off-line" working