Skip to content
Prev 378879 / 398502 Next

Issue with t.test

Hi Smruti,
In the example in question, you are probably doing something like this:

# I didn't see any attachment for the data
X<-rnorm(99,mean=59.96753)
t.test(X,mu=50,alternative="less")

       One Sample t-test

data:  X
t = 101.29, df = 98, p-value = 1
alternative hypothesis: true mean is less than 50
95 percent confidence interval:
    -Inf 60.07022
sample estimates:
mean of x
59.90779

What this probably means is since the lower confidence interval for
the test is undefined, the program returns a p-value of 1 as an
estimate, much like the p-value<2.2e-16 for the other tests.
[1] 1

Neither of these values are exact, but indicate that the null
hypothesis should be accepted or rejected respectively.

Jim
Message-ID: <CA+8X3fWZDrxr4a0DbyVV-LfsSM4GZdaw_mEFSFYtc2tkX_CCSQ@mail.gmail.com>
In-Reply-To: <PS2PR02MB2839F67B6327A80D90A9A243A94A0@PS2PR02MB2839.apcprd02.prod.outlook.com>