Skip to content
Back to formatted view

Raw Message

Message-ID: <a43c2498-40f5-090e-b8fb-22724da41383@auckland.ac.nz>
Date: 2019-03-12T20:38:24Z
From: Rolf Turner
Subject: [FORGED] Re:  Issue with t.test
In-Reply-To: <CAFEqCdyNLzuSyTHK_NWLbb6Ee0kCko_5NwWFrx4yJxcjqXJ96Q@mail.gmail.com>

On 13/03/19 9:06 AM, Greg Snow wrote:

<SNIP>

> The only time I have seen t.test give a p-value of 1 is when the
> data mean exactly equals the null hypothesis mean and the alternative
> is the default of two.sided.

<SNIP>

Doesn't have to be *exact* equality.  Just close!

E.g.:

set.seed(42)
x <- runif(10)
mew <- 0.63626
mew==mean(x) # FALSE
t.test(x,mu=mew)

cheers,

Rolf

-- 
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276