R-alpha: new class for chisquare tests?

Kurt Hornik Kurt.Hornik@ci.tuwien.ac.at
Thu, 21 Aug 1997 23:02:06 +0200

I sort of asked this before, but perhaps not explicitly enough.

In my ctest collection, there are several chisquare-based tests.  For
some of them, it may be useful to also return information on expected
(and observed) counts.  The question is, how should this be done.  Of
course, there is no problem adding the corresponding components to the
list returned by the functions.  However, as these are of class `htest',
the components don't show up in the printed output.

(Of course, one can easily obtain them if they are in the list, but I
think Peter is with me when I say that this is not the right thing in an
intro course.)

* Should we extend print.htest() to display info on expected and
observed counts in case it is there?

* (Should we have an extra argument to control this behavior?)

* Or should there be a class "chisqtest" with a slightly different print
and perhaps also summary method?

* Or ...?

r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch