Thank you for the package and textbook. Students enjoy it very much.
We realized that the conf.level argument for the oneSampleTTest() function is not responsive to what is requested. The following code returns the same interval.
likert <- c(3,1,4,1,4,6,7,2,6,6,7)
oneSampleTTest( x = likert, mu = 4, conf.level=.99)
oneSampleTTest( x = likert, mu = 4, conf.level=.95)
Hi,
Thank you for the package and textbook. Students enjoy it very much.
We realized that the
conf.level
argument for theoneSampleTTest()
function is not responsive to what is requested. The following code returns the same interval.I checked the code for this function https://github.com/djnavarro/lsr/blob/master/R/oneSampleTTest.R
It looks like it doesn't pass the input to the t.test function at Line 98.
So, regardless of what the user says, it always uses the default confidence interval for the
t.test()
function, which is 0.95.I think a modification for Line 98 should fix the problem.