Skip to content
Prev 306924 / 398506 Next

t-test

Hello,

I'm not quite sure I understand, but something like this?

tapply(dat$Score, dat$Name, FUN = mean)
sapply(unique(dat$Name), function(un){
     with(dat, t.test(Score[Name == un], Score[Name != un])$p.value)})

My doubt is in what you mean by "mean for CTK and all". The ?t.test 
gives a confidence interval for the difference in the means, so maybe 
you'll have to look there for what you want.

Hope this helps,

Rui Barradas
Em 04-10-2012 10:34, Nico Met escreveu: