From ripley@stats.ox.ac.uk  Fri Jan 31 23:10:03 2003
From: ripley@stats.ox.ac.uk (Prof Brian D Ripley)
Date: Fri Jan 31 23:10:03 2003
Subject: [Rd] summary.table parameter bug (PR#2514)
In-Reply-To: <200301312155.WAA01337@pubhealth.ku.dk>
Message-ID: <Pine.GSO.4.44.0301312158310.4637-100000@auk.stats>

On Fri, 31 Jan 2003 rreeve@liposcience.com wrote:

> summary.table has a bug in the parameter line. It currently gives
>
> df = (K1 - 1) * (K2 - 1) * .. * (Kp - 1)                       (1)
>
> where Ki is the number of categories of variable i. The documentation and the expected counts say that the test is for independence among the variables (equivalent to a loglinear model [1][2]...[p]). So equation (1) is incorrect for this hypothesis, except for 2-way tables. The df line should be
>
>
> parameter <- prod(sapply(m, length)) - (sum(sapply(m, length) - 1) + 1)
>
> Running Version 1.5-0, 2002-04-28 for Windows.

So that's 4 versions old already. I don't know if this has changed (you
don't make it easy for us by providing an example), but I do know that
around 170 bugs have been fixed, so please update.

We do expect people to test the latest version before filing a bug report.
It takes you less time that it takes the volunteers to process the report.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] summary.table parameter bug (PR#2514)
Prof Brian D Ripley