Re: R-alpha: ANNOUNCE: ctest

Kurt Hornik (Kurt.Hornik@ci.tuwien.ac.at)
Wed, 22 Jan 1997 15:06:27 +0100


Date: Wed, 22 Jan 1997 15:06:27 +0100
Message-Id: <199701221406.PAA31931@aragorn.ci.tuwien.ac.at>
From: Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at>
To: Peter Dalgaard BSA <pd@kubism.ku.dk>
Subject: Re: R-alpha: ANNOUNCE: ctest
In-Reply-To: <x2680rc5mv.fsf@bush.kubism.ku.dk>
 <x2680rc5mv.fsf@bush.kubism.ku.dk>

>>>>> On 21 Jan 1997 18:14:32 +0100,
>>>>> Peter Dalgaard BSA <pd@kubism.ku.dk> said:

> and BTW:
> What is the relation between chisq.test and the chisquare.test that
> comes with R-0.15

I forgot to reply to this ...

chisq.test() has the same functionality as the corresponding thing in S,
I think.

chisquare.test() in addition allows you to test a one-dimensional table
for following a certain distribution, which is a very nice extension.
This could certainly be added to chisq.test().

The other difference is that chisquare.test() does not return an object
of class "htest", but prints statistic, df and pval itself and returns a
list containing `the matrix containing the components of chisquare' and
the matrix containing the expected values, E.

Having such additional information available is very nice, I think.  (In
particular, it is always nice to have E ...).  Hence, I should perhaps
have chisq.test() return the expected counts as well.  print.htest()
will not show them, but nevertheless ... 

So, if no one objects within the next few days, I'll add the p option
and E to the returned list in chisq.test().

-k
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- For info or help, send "info" or "help",
To [un]subscribe, send "[un]subscribe"
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-