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 ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.