From dmurdoch at pair.com  Thu Aug 21 19:51:33 2003
From: dmurdoch at pair.com (Duncan Murdoch)
Date: Fri Aug 22 00:52:20 2003
Subject: [Rd] The two chisq.test p values differ when the contingency
	table is transposed! (PR#3486)
In-Reply-To: <16197.3192.619542.672267@mithrandir.hornik.net>
References: <200308151442.h7FEgEJH025872@pubhealth.ku.dk>
	<16197.3192.619542.672267@mithrandir.hornik.net>
Message-ID: <v5jakvod1kshuv1h9kjdr6aalkc7ret8fs@4ax.com>

On Thu, 21 Aug 2003 20:16:24 +0200, you wrote:


>I think it works to use
>
>            STATISTIC <- sum(sort((x - E) ^ 2 / E, decreasing = TRUE))
>
>instead: this starts by summing the big values, and hence if at all
>slightly 'underestimates' the real value, which is fine for the
>comparisons.

Looks good here.

Duncan


[Rd] The two chisq.test p values differ when the contingency table is transposed! (PR#3486)
Duncan Murdoch