From dmurdoch at pair.com  Wed Oct 22 14:17:32 2003
From: dmurdoch at pair.com (Duncan Murdoch)
Date: Wed Oct 22 14:16:34 2003
Subject: [Rd] Something strange in cor.test in R-1.8.0 (PR#4718)
In-Reply-To: <Pine.LNX.4.44.0310221143580.5414-100000@gannet.stats>
References: <200310221011.h9MABn0P009736@pubhealth.ku.dk>
	<Pine.LNX.4.44.0310221143580.5414-100000@gannet.stats>
Message-ID: <u7tcpv4tf2n3t6g7i1prcrgdhji7qocv1q@4ax.com>

I've now tried the code 

set.seed(1)
x <- rnorm(50)
y <- rnorm(50)
cor.test(x,y,method="spearman")
x <- rnorm(50)
y <- rnorm(50)
cor.test(x,y,method="spearman")

in r-patched (which gives apparently correct results), and r-devel,
which gives the first result correct, the second incorrect; when
repeated, both are bad.

Duncan Murdoch


[Rd] Something strange in cor.test in R-1.8.0 (PR#4718)
Duncan Murdoch