does anyone know how to use the apply function on a two-variable t-test? i've tried everything.

apply(data[1:4],1,t.test) # works, but only a one-variable test
apply((data[1:4],data[5:9]),1,t.test) # returns a syntax error

i've also tried using the for loop:

for (i in 1:1000) t.test(data[i,1:4],data[i,5:9])

doesn't print anything! it processes for awhile, so i know it's doing the calculations.

t.test(data[1,1:4],data[1,5:9])

works fine! prints to the screen as i'd expect.

i have checked and double checked that sink() is empty. please also send your reply to [EMAIL PROTECTED] i receive the digest version of the mailing list.

thanks for any help,
jason

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to