Problems with t.test one mean

Hello!, I want to perform a t.test about a population mean, but no matter what 'nu' I put in, the result always gives the same value of the statistic (t=57.3, which is ridiculous). For sure something is missing in the script. Thanks!

t.test(BESE23$PB, y=NULL, alternative= c("two.sided", "less", "greater"), paired = FALSE, conf.level = 0.95, nu=23)

t = 57.302, df = 398, p-value < 2.2e-16
mean of x = 23.25564

There is no argument named nu in the t.test() function. There is one named mu. Try setting that.

Thanks!! It worked now (what a stupid mistake LOL)

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.