X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Ftransformation.texi;h=5161df224ebcb5c63fcb684e347b6791d7765b95;hb=3aaf55988637cd30d00acd14d188ed5716c0eb74;hp=b6c8e960c70a1408d4398f7c9b619b988e58c902;hpb=adb05b9a13e7cd677a4fef52163eba05cb56d37f;p=pspp diff --git a/doc/transformation.texi b/doc/transformation.texi index b6c8e960c7..5161df224e 100644 --- a/doc/transformation.texi +++ b/doc/transformation.texi @@ -224,6 +224,34 @@ causes the period to be interpreted as the end of the command.) @cmd{AGGREGATE} both ignores and cancels the current @cmd{SPLIT FILE} settings (@pxref{SPLIT FILE}). +@subsection Aggregate Example + +The @file{personnel.sav} dataset provides the occupations and salaries of +many individuals. For many purposes however such detailed information is +not interesting, but often the aggregated statistics of each occupation are +of interest. In @ref{aggregate:ex} the @cmd{AGGREGATE} command is used +to calculate the mean, the median and the standard deviation of each +occupation. + +@float Example, aggregate:ex +@psppsyntax {aggregate.sps} +@caption {Calculating aggregated statistics from the @file{personnel.sav} file.} +@end float + +Since we chose the @samp{MODE = REPLACE} option, in @ref{aggregate:res} cases +for the individual persons are no longer present. They have each been replaced +by a single case per aggregated value. + +@float Results, aggregate:res +@psppoutput {aggregate} +@caption {Aggregated mean, median and standard deviation per @exvar{occupation}.} +@end float + +Note that some values for the standard deviation are blank. +This is because there is only one case with the respective +occupation. + + @node AUTORECODE @section AUTORECODE @vindex AUTORECODE