From c8d42e16f65f6c2f7b6ec534c5339aea6af5d0dd Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 16 Aug 2022 07:48:39 -0700 Subject: [PATCH] docs --- doc/statistics.texi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/doc/statistics.texi b/doc/statistics.texi index 44db27aad1..927e27e008 100644 --- a/doc/statistics.texi +++ b/doc/statistics.texi @@ -1187,6 +1187,30 @@ CTABLES /TABLE=AgeGroup [COLPCT 'Gender %' PCT5.0, @psppoutput {ctables11} @c TODO special CTABLES formats +In addition to the standard formats, @code{CTABLES} allows the user to +specify the following special formats: + +@multitable {@code{NEGPAREN@i{w}.@i{d}}} {Encloses all numbers in parentheses.} {@t{(42.96%)}} {@t{(-42.96%)}} +@item @code{NEGPAREN@i{w}.@i{d}} +@tab Encloses negative numbers in parentheses. +@tab @t{@w{ }42.96} +@tab @t{@w{ }(42.96)} + +@item @code{NEQUAL@i{w}.@i{d}} +@tab Adds a @code{N=} prefix. +@tab @t{@w{ }N=42.96} +@tab @t{@w{ }N=-42.96} + +@item @code{@code{PAREN@i{w}.@i{d}}} +@tab Encloses all numbers in parentheses. +@tab @t{@w{ }(42.96)} +@tab @t{@w{ }(-42.96)} + +@item @code{PCTPAREN@i{w}.@i{d}} +@tab Encloses all numbers in parentheses with a @samp{%} suffix. +@tab @t{@w{ }(42.96%)} +@tab @t{(-42.96%)} +@end multitable Parentheses provide a shorthand to apply summary specifications to multiple variables. For example, both of these commands: -- 2.30.2