Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Statscraft 0.7.0, release v0.7.0

VECTOR

Name a range of variables, or new variables, as a vector for indexed use.

Syntax

VECTOR name = first TO last [/ ...].
VECTOR prefix [, prefix ...] (n [format]) [/ ...].
The first form refers to existing variables, all numeric or all strings of one width;
the second creates prefix1 to prefixn (F8.2, or the format given). v(i) reads an element
in expressions and is a target of COMPUTE and IF. A vector lasts until the next procedure.

Example

VECTOR q = q1 TO q10 / new (5, F2).

statscraft help VECTOR prints the same text in the terminal. All commands