|
STACKName:
The STACK command provides a convenient method for converting from the multi-column form to the single response variable with group-id variable form.
<SUBSET/EXPCEPT/FOR qualification> where <x1> ... <xk> is a set of one or more response variables; <y2> is the variable to contain <x1> ... <xk> in a single response variable; <x2> is the variable to contain the group-id variable; and where the <SUBSET/EXCEPT/FOR qualification> is optional. Note that the response variables do not have to be the same size.
SKIP 25 READ MONTGOME.DAT Y1 Y2 Y3 . LET Z2 X2 = STACK Y1 Y2 Y3 . XTIC OFFSET 0.5 0.5 LET NVAR = 3 XLIMITS 1 NVAR MAJOR XTIC MARK NUMBER NVAR MINOR XTIC MARK NUMBER 0 MAJOR XTIC MARK NUMBER NVAR X1TIC MARK LABEL FORMAT ALPHA X1TIC MARK LABEL CONTENT LARGE MEDIUM SMALL . MULTIPLOT SCALE FACTOR 1.5 MULTIPLOT CORNER COORDINATES 0 0 100 100 MULTIPLOT 2 2 CHARACTER X BLANK LINE BLANK SOLID Y1LABEL MEAN (PERCENTAGE CLASSIFICATION) MEAN PLOT Z2 X2 Y1LABEL SD (PERCENTAGE CLASSIFICATION) SD PLOT Z2 X2 LINES BOX PLOT CHARACTER BOX PLOT FENCES ON Y1LABEL (PERCENTAGE CLASSIFICATION) BOX PLOT Z2 X2 END OF MULTIPLOT
Date created: 5/15/2003 |