Skip to content
Prev 140560 / 398506 Next

generating a paired t-test with multiple levels of a factor

On 28/03/2008, at 11:14 AM, Peter Dalgaard wrote:

            
<snip>

I would very strongly call this a bug in pairwise.t.test.  One should
*not* have to specify pool=FALSE if one is doing a paired t-test.  For
a paired t-test there is actually only *one* sample (the sample of  
pairwise
differences) and hence only one standard deviation, and hence nothing  
to pool.

My reading of the code is that if pool.sd is TRUE (the default) then the
pairwise.t.test function does two-independent-sample t-tests willy- 
nilly,
and ignores the ``paired=TRUE'' argument.  (It doesn't call upon  
t.test()
which is the only bit which considers the ``paired'' argument.)

This is a dangerous trap, and should be fixed.  (Which is not hard.)

			cheers,

				Rolf

######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}