Skip to content
Prev 8847 / 63424 Next

summary.table parameter bug (PR#2514)

The reason why summary.table() generates the test is the following:
S-PLUS crosstabs() does so, and chisq.test() can only deal with 2
variables, and people may find it useful to see the test performed.

I have a problem with functions for generating tables (such as table()
or xtabs()) performing a test, but personally I think that summary() can
do so.

[I would object to an independence.test() which does just the above, but
then maybe one could make it a generic with a method for tables doing
the above.]

In any case, will fix the incorrect dofs.

-k