Skip to content

15.7.3 Statistics Positions and Labels ​

/SLABELS
    [POSITION={COLUMN _|_ ROW _|_ LAYER}]
    [VISIBLE={YES _|_ NO}]

The SLABELS subcommand controls the position and visibility of summary statistics for the TABLE subcommand that it follows.

POSITION sets the axis on which summary statistics appear. With POSITION=COLUMN, which is the default, each summary statistic appears in a column. For example:

CTABLES /TABLE=age [MEAN, MEDIAN] BY gender.
MeanMedianMeanMedian
S3a. GENDER:
MaleFemale
D1. AGE: What is your age?46455052

With POSITION=ROW, each summary statistic appears in a row, as shown below:

CTABLES /TABLE=age [MEAN, MEDIAN] BY gender /SLABELS POSITION=ROW.
MaleFemale
S3a. GENDER:
D1. AGE: What is your age?Mean4650
Median4552

POSITION=LAYER is also available to place each summary statistic in a separate layer.

Labels for summary statistics are shown by default. Use VISIBLE=NO to suppress them. Because unlabeled data can cause confusion, it should only be considered if the meaning of the data is evident, as in a simple case like this:

CTABLES /TABLE=ageGroup [TABLEPCT] /SLABELS VISIBLE=NO.
Age group15 or younger.0%
16 to 2515.7%
26 to 3513.8%
36 to 4514.8%
46 to 5516.8%
56 to 6517.8%
66 or older21.1%

基于 GNU PSPP 2.0.1 手册与入门教程整理