Ross Ihaka
1997-Aug-22 08:21 UTC
R-alpha: class for chisquare tests; Thoughts on print & summary
From: Martin Maechler <maechler@stat.math.ethz.ch> To: Kurt.Hornik@ci.tuwien.ac.at CC: R-devel@stat.math.ethz.ch Subject: Re: R-alpha: class for chisquare tests; Thoughts on print & summary Kurt, I think we hopefully are coming to an agreement that 1) your ctest collection should make its way into 'R core' ((and you are the one who can make it happen now ..)) By all means - throw the present versions away and add yours. We may have to move to an inner and outer core if the core grows too big. 2) it should remain S-plus downward compatible as much as reasonably possible. For functions which are not going to be building blocks such compatibility is less important. Better to do it "right". b2. Yes, add extra arguments to print.htest / summary.htest to control this behavior. [this is also done for the correlation matrix in print.summary.lm in S (not yet in R ..)] [ Actually I think that we just have a different default value for the corr= argument. If you'd like this changed just say. I just don't find the correlations that informative. ] I'm reviewing the "lm" methods at present because thats what I'm teaching at present. I have an "lm.predict" about ready to roll, but am a bit hung up on trying to propagate case names through "model.frame", which in turn is inducing an sidetrack into [<- etc etc ... alternatively, you would make a new class 'chisqtest' but give your test results BOTH classes class(res) <- c("chisqtest","htest") Such that you can use 'htest' methods in general, and just one print.chisqtest in particular. I'd probably try to avoid making a separate class for every kind of test result and try to build methods for the general case. This would make implementing new tests easier as well as imposing the same general structure on the output. Ross =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 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 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-