R-alpha: R: Bug in t.test

Anthony Ledford (mas2al@mcs.surrey.ac.uk)
Thu, 3 Oct 1996 13:26:28 +0100 (BST)


Date: Thu, 3 Oct 1996 13:26:28 +0100 (BST)
From: Anthony Ledford <mas2al@mcs.surrey.ac.uk>
To: r-testers@stat.math.ethz.ch
Subject: R-alpha: R: Bug in t.test

* I'm rather new to R - sorry if this is a known problem.

There seems to be a bug in the t.test function. Below 
is an example which demonstrates the problem.

In Splus:
 
> x1 <- c(243, 251, 275, 291, 347, 354, 380, 392)
> x2 <- c(206, 210, 226, 249, 255, 273, 289, 295, 309)
> t.test(x1,x2)
 
Amongst other output, this gives ....
 
95 percent confidence interval:
   9.421519 110.050703 
 
In R (v0.12): The same commands give
 
95 percent confidence interval:
 263.8165 369.4335 
 
Cheers, Anthony.
---
Dr Anthony Ledford.			26AA21 Department of Mathematical
Email	: A.Ledford@surrey.ac.uk	and Computing Sciences,
Phone   : +44 (0)1483 - 300800 x2643	University of Surrey, 
Fax	: +44 (0)1483 - 259385		Guildford, Surrey, GU2 5XH, UK.

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