[R] [FORGED] Re: Issue with t.test
Rolf Turner
r@turner @end|ng |rom @uck|@nd@@c@nz
Tue Mar 12 21:38:24 CET 2019
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
More information about the R-help
mailing list