X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flanguage%2Fstats%2Fctables.at;h=3ca41fc2493ecd9494300598c2a8b79cce6ce2b3;hb=2088d7438791ad96dda2037a6ac7e9b0f3998c8b;hp=960004e6f351c71f3e823ba531b6ea6394c3418b;hpb=eeae0e2599fc01e7917d79b22541c9cfe1d0db4d;p=pspp diff --git a/tests/language/stats/ctables.at b/tests/language/stats/ctables.at index 960004e6f3..3ca41fc249 100644 --- a/tests/language/stats/ctables.at +++ b/tests/language/stats/ctables.at @@ -1,11 +1,6 @@ AT_BANNER([CTABLES]) -dnl Features not yet tested: -dnl - Summary functions: -dnl * WEIGHT and adjustment weights. -dnl * details of missing value handling in summaries. -dnl -dnl Not for v1: +dnl Features not yet implemented: dnl - Multiple response sets dnl - MRSETS subcommand. dnl - CATEGORIES: Special case for explicit category specifications and multiple dichotomy sets. @@ -14,8 +9,6 @@ dnl - COMPARETEST dnl - Summary functions: dnl * .LCL and .UCL suffixes. dnl * .SE suffixes. -dnl - Summary functions: -dnl * )CILEVEL in summary label specification dnl - CATEGORIES: dnl * Data-dependent sorting. @@ -533,6 +526,17 @@ CTABLES /PCOMPUTE &x=EXPR(**). CTABLES /TABLE. CTABLES /TABLE qn113 [COUNT] BY qn114 [COUNT] BY qn116 [COUNT]. + +CTABLES /TABLE qn1 /CATEGORIES VARIABLES=qn1 KEY=PTILE(qn1, 50). + +CTABLES /TABLE $mrset. + +CTABLES /TABLE qn113 /SIGTEST TYPE=CHISQUARE. +CTABLES /TABLE qn113 /COMPARETEST TYPE=PROP. + +CTABLES /TABLE qn113 [COUNT.UCL]. + +CTABLES /TABLE qn1 /CATEGORIES **. ]]) AT_CHECK([pspp ctables.sps -O box=unicode -O width=80], [1], [[ctables.sps:2.76-2.78: error: CTABLES: Computed category &pc references a @@ -595,8 +599,8 @@ variable string. 8 | CTABLES /TABLE string /CATEGORIES VARIABLES=string [1]. | ^ -ctables.sps:10: error: CTABLES: ROWLABELS=OPPOSITE is not allowed with sorting -based on a summary function. +ctables.sps:10.74-10.86: error: CTABLES: Syntax error at `KEY=MEAN(qn1)': Data- +dependent sorting is not implemented. ctables.sps:12: error: CTABLES: ROWLABELS=OPPOSITE requires the variables to be moved to be categorical, but qnd1 is a scale variable. @@ -649,6 +653,24 @@ ctables.sps:23.33-23.37: note: CTABLES: This is a scale variable, so it always has a summary even if the syntax does not explicitly specify one. 23 | CTABLES /TABLE qn113 [COUNT] BY qn114 [COUNT] BY qn116 [COUNT]. | ^~~~~ + +ctables.sps:25.46-25.63: error: CTABLES: Syntax error at `KEY=PTILE(qn1, 50)': +Data-dependent sorting is not implemented. + +ctables.sps:27.16-27.21: error: CTABLES: Syntax error at `$mrset': Multiple +response set support not implemented. + +ctables.sps:29.23-29.44: error: CTABLES: Syntax error at `SIGTEST +TYPE=CHISQUARE': Support for SIGTEST not yet implemented. + +ctables.sps:30.35-30.43: error: CTABLES: Syntax error at `TYPE=PROP': Support +for COMPARETEST not yet implemented. + +ctables.sps:32.23-32.31: error: CTABLES: Syntax error at `COUNT.UCL': Support +for LCL, UCL, and SE summary functions is not yet implemented. + +ctables.sps:34.32-34.33: error: CTABLES: Syntax error at `**': expecting +VARIABLES. ]]) AT_CLEANUP @@ -4985,7 +5007,7 @@ AT_CHECK([pspp ctables.sps -O box=unicode -O width=120], [0], [dnl │ Sum │181.00│147.00│197.00│181.00│180.00│194.00│178.00│177.00│191.00│ │ Count │ 10│ 10│ 10│ 10│ 10│ 10│ 10│ 10│ 10│ │ Total N │ 10│ 10│ 10│ 10│ 10│ 10│ 10│ 10│ 10│ -│ Layer Row Sum % │ 26.3%│ 21.3%│ .│ 26.3%│ 26.1%│ .│ .│ .│ .│ +│ Layer Row Sum % │ 11.1%│ 9.0%│ 12.1%│ 11.1%│ 11.1%│ 11.9%│ 10.9%│ 10.9%│ 11.7%│ ╰───────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────╯ Statistics @@ -5048,32 +5070,32 @@ AT_CHECK([pspp ctables.sps -O box=unicode -O width=120], [0], [dnl │ Sum │1089.00│847.00│928.00│727.00│1034.00│939.00│806.00│815.00│1015.00│ │ Count │ 46│ 49│ 52│ 48│ 51│ 47│ 50│ 53│ 49│ │ Total N │ 46│ 49│ 52│ 48│ 51│ 47│ 50│ 53│ 49│ -│ Layer Row Sum % │ 29.5%│ 22.9%│ .│ 19.7%│ 28.0%│ .│ .│ .│ .│ +│ Layer Row Sum % │ 13.3%│ 10.3%│ 11.3%│ 8.9%│ 12.6%│ 11.5%│ 9.8%│ 9.9%│ 12.4%│ ╰───────────────────┴───────┴──────┴──────┴──────┴───────┴──────┴──────┴──────┴───────╯ - Custom Tables -╭────────────────────────────┬──────────────────────────────────────────────────────────────╮ -│ │ a │ -│ ├────────────────────┬────────────────────┬────────────────────┤ -│ │ 1 │ 2 │ 9 │ -│ ├────────────────────┼────────────────────┼────────────────────┤ -│ │ b │ b │ b │ -│ ├──────┬──────┬──────┼──────┬──────┬──────┼──────┬──────┬──────┤ -│ │ 3 │ 4 │ 9 │ 3 │ 4 │ 9 │ 3 │ 4 │ 9 │ -├────────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤ -│c Valid N │ 7│ 6│ 8│ 7│ 7│ 8│ 7│ 7│ 8│ -│ Missing │ 3│ 4│ 2│ 3│ 3│ 2│ 3│ 3│ 2│ -│ Unweighted Mean │ 25.86│ 24.50│ 24.63│ 25.86│ 25.71│ 24.25│ 25.43│ 25.29│ 23.88│ -│ Std Error of Mean │ 2.44│ 2.14│ 2.58│ 2.44│ 2.18│ 2.43│ 2.36│ 2.18│ 2.47│ -│ Median │ 25.00│ 24.50│ 25.00│ 25.00│ 27.00│ 25.00│ 25.00│ 24.00│ 23.50│ -│ Mode │ 16│ 18│ 15│ 16│ 18│ 15│ 16│ 18│ 15│ -│ Std Deviation │ 6.47│ 5.24│ 7.31│ 6.47│ 5.77│ 6.88│ 6.24│ 5.77│ 6.98│ -│ Variance │ 41.81│ 27.50│ 53.41│ 41.81│ 33.24│ 47.36│ 38.95│ 33.24│ 48.70│ -│ Sum │181.00│147.00│197.00│181.00│180.00│194.00│178.00│177.00│191.00│ -│ Unweighted Count │ 10│ 10│ 10│ 10│ 10│ 10│ 10│ 10│ 10│ -│ Total N │ 10│ 10│ 10│ 10│ 10│ 10│ 10│ 10│ 10│ -│ Unweighted Layer Row Sum %│ 26.3%│ 21.3%│ .│ 26.3%│ 26.1%│ .│ .│ .│ .│ -╰────────────────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────╯ + Custom Tables +╭──────────────────────────────┬──────────────────────────────────────────────────────────────╮ +│ │ a │ +│ ├────────────────────┬────────────────────┬────────────────────┤ +│ │ 1 │ 2 │ 9 │ +│ ├────────────────────┼────────────────────┼────────────────────┤ +│ │ b │ b │ b │ +│ ├──────┬──────┬──────┼──────┬──────┬──────┼──────┬──────┬──────┤ +│ │ 3 │ 4 │ 9 │ 3 │ 4 │ 9 │ 3 │ 4 │ 9 │ +├──────────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤ +│c Unweighted Valid N │ 7│ 6│ 8│ 7│ 7│ 8│ 7│ 7│ 8│ +│ Unweighted Missing │ 3│ 4│ 2│ 3│ 3│ 2│ 3│ 3│ 2│ +│ Unweighted Mean │ 25.86│ 24.50│ 24.63│ 25.86│ 25.71│ 24.25│ 25.43│ 25.29│ 23.88│ +│ Unweighted Std Error of Mean│ 2.44│ 2.14│ 2.58│ 2.44│ 2.18│ 2.43│ 2.36│ 2.18│ 2.47│ +│ Unweighted Median │ 25.00│ 24.50│ 25.00│ 25.00│ 27.00│ 25.00│ 25.00│ 24.00│ 23.50│ +│ Unweighted Mode │ 16│ 18│ 15│ 16│ 18│ 15│ 16│ 18│ 15│ +│ Unweighted Std Deviation │ 6.47│ 5.24│ 7.31│ 6.47│ 5.77│ 6.88│ 6.24│ 5.77│ 6.98│ +│ Unweighted Variance │ 41.81│ 27.50│ 53.41│ 41.81│ 33.24│ 47.36│ 38.95│ 33.24│ 48.70│ +│ Unweighted Sum │181.00│147.00│197.00│181.00│180.00│194.00│178.00│177.00│191.00│ +│ Unweighted Count │ 10│ 10│ 10│ 10│ 10│ 10│ 10│ 10│ 10│ +│ Unweighted Total N │ 10│ 10│ 10│ 10│ 10│ 10│ 10│ 10│ 10│ +│ Unweighted Layer Row Sum % │ 11.1%│ 9.0%│ 12.1%│ 11.1%│ 11.1%│ 11.9%│ 10.9%│ 10.9%│ 11.7%│ +╰──────────────────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────╯ ]) AT_CLEANUP