/[pspp]/pspp/doc/variables.texi
ViewVC logotype

Diff of /pspp/doc/variables.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by blp, Fri Mar 11 18:39:25 2005 UTC revision 1.4 by jmd, Wed Apr 13 10:09:59 2005 UTC
# Line 18  several utility functions for examining Line 18  several utility functions for examining
18  * VALUE LABELS::                Set value labels for variables.  * VALUE LABELS::                Set value labels for variables.
19  * STRING::                      Create new string variables.  * STRING::                      Create new string variables.
20  * VARIABLE LABELS::             Set variable labels for variables.  * VARIABLE LABELS::             Set variable labels for variables.
21    * VARIABLE ALIGNMENT::          Set the alignment for display.
22    * VARIABLE WIDTH::              Set the display width.
23    * VARIABLE LEVEL::              Set the measurement level.
24  * VECTOR::                      Declare an array of variables.  * VECTOR::                      Declare an array of variables.
25  * WRITE FORMATS::               Set variable write formats.  * WRITE FORMATS::               Set variable write formats.
26  @end menu  @end menu
# Line 335  implicitly derived from the specified ou Line 338  implicitly derived from the specified ou
338    
339  Created variables are initialized to spaces.  Created variables are initialized to spaces.
340    
341  @node VARIABLE LABELS, VECTOR, STRING, Variable Attributes  
342    @node VARIABLE LABELS, VARIABLE ALIGNMENT, STRING, Variable Attributes
343  @section VARIABLE LABELS  @section VARIABLE LABELS
344  @vindex VARIABLE LABELS  @vindex VARIABLE LABELS
345    
346  @display  @display
347  VARIABLE LABELS  VARIABLE LABELS
348          /var_list 'var_label'.          var_list 'var_label'
349            [ /var_list 'var_label']
350            .
351            .
352            .
353            [ /var_list 'var_label']
354  @end display  @end display
355    
356  @cmd{VARIABLE LABELS} associates explanatory names  @cmd{VARIABLE LABELS} associates explanatory names
357  with variables.  This name, called a @dfn{variable label}, is displayed by  with variables.  This name, called a @dfn{variable label}, is displayed by
358  statistical procedures.  statistical procedures.
359    
360  To assign a variable label to a group of variables, specify a slash  To assign a variable label to a group of variables, specify a
361  (@samp{/}), followed by the list of variable names and the variable  list of variable names and the variable label as a string.
362  label as a string.  To assign different labels to different variables in the same command,
363    preceed the subsequent variable list with a slash (@samp{/}).
364    
365    
366    @node VARIABLE ALIGNMENT, VARIABLE WIDTH, VARIABLE LABELS, Variable Attributes
367    @comment  node-name,  next,  previous,  u
368    @section VARIABLE ALIGNMENT
369    @vindex VARIABLE ALIGNMENT
370    
371    @display
372    VARIABLE ALIGNMENT
373            var_list ( LEFT | RIGHT | CENTER )
374            [ /var_list ( LEFT | RIGHT | CENTER ) ]
375            .
376            .
377            .
378            [ /var_list ( LEFT | RIGHT | CENTER ) ]
379    @end display
380    
381    @cmd{VARIABLE ALIGNMENT} sets the alignment of variables for display editing
382    purposes.   This only has effect for third party software.  It does not affect
383    the display of variables in the PSPP output.
384    
385    
386    
387  @node VECTOR, WRITE FORMATS, VARIABLE LABELS, Variable Attributes  
388    @node VARIABLE WIDTH, VARIABLE LEVEL, VARIABLE ALIGNMENT, Variable Attributes
389    @comment  node-name,  next,  previous,  up
390    @section VARIABLE WIDTH
391    @vindex VARIABLE WIDTH
392    @display
393    VARIABLE WIDTH
394            var_list (width)
395            [ /var_list (width) ]
396            .
397            .
398            .
399            [ /var_list (width) ]
400    @end display
401    
402    @cmd{VARIABLE WIDTH} sets the column width of variables for display editing
403    purposes.   This only affects third party software.  It does not affect
404    the display of variables in the PSPP output.
405    
406    
407    @node VARIABLE LEVEL, VECTOR, VARIABLE WIDTH, Variable Attributes
408    @comment  node-name,  next,  previous,  up
409    @section VARIABLE LEVEL
410    @vindex VARIABLE LEVEL
411    @display
412    VARIABLE LEVEL
413            var_list ( SCALE | NOMINAL | ORDINAL )
414            [ /var_list ( SCALE | NOMINAL | ORDINAL ) ]
415            .
416            .
417            .
418            [ /var_list ( SCALE | NOMINAL | ORDINAL ) ]
419    @end display
420    
421    @cmd{VARIABLE LEVEL} sets the measurement level of  variables.
422    Currently, this has no effect except for certain third party software.
423    
424    
425    @node VECTOR, WRITE FORMATS, VARIABLE LEVEL, Variable Attributes
426  @section VECTOR  @section VECTOR
427  @vindex VECTOR  @vindex VECTOR
428    
# Line 373  To make a vector and create variables at Line 443  To make a vector and create variables at
443  more vector names followed by a count in parentheses.  This will cause  more vector names followed by a count in parentheses.  This will cause
444  variables named @code{@var{vec}1} through @code{@var{vec}@var{count}}  variables named @code{@var{vec}1} through @code{@var{vec}@var{count}}
445  to be created as numeric variables with print and write format F8.2.  to be created as numeric variables with print and write format F8.2.
446  Variable names including numeric suffixes may not exceed 8 characters  Variable names including numeric suffixes may not exceed 64 characters
447  in length, and none of the variables may exist prior to @cmd{VECTOR}.  in length, and none of the variables may exist prior to @cmd{VECTOR}.
448    
449  All the variables in a vector must be the same type.  All the variables in a vector must be the same type.
# Line 386  Variables}). Line 456  Variables}).
456  Variables within a vector may be referenced in expressions using  Variables within a vector may be referenced in expressions using
457  @code{vector(index)} syntax.  @code{vector(index)} syntax.
458    
459    
460    
461    
462  @node WRITE FORMATS,  , VECTOR, Variable Attributes  @node WRITE FORMATS,  , VECTOR, Variable Attributes
463  @section WRITE FORMATS  @section WRITE FORMATS
464  @vindex WRITE FORMATS  @vindex WRITE FORMATS

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26