Re: R-alpha: ANNOUNCE: ctest

Kurt Hornik (
Wed, 22 Jan 1997 15:06:27 +0100

Date: Wed, 22 Jan 1997 15:06:27 +0100
Message-Id: <>
From: Kurt Hornik <>
To: Peter Dalgaard BSA <>
Subject: Re: R-alpha: ANNOUNCE: ctest
In-Reply-To: <>

>>>>> On 21 Jan 1997 18:14:32 +0100,
>>>>> Peter Dalgaard BSA <> 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().

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: