Entering edit mode
michael watson IAH-C
★
3.4k
@michael-watson-iah-c-378
Last seen 10.3 years ago
Hi
I am having problems with multtest and it is really annoying because I
know I am being stupid!
I read a tab-delimited text file in using read.table, into a variable
called "data".
data has 12 columns, 1-5 being annotation and 6-12 (7 columns) being
actual data.
When I try:
> t <- mt.teststat(data[,6-12], c(0,0,0,1,1,1,1), test="t")
I get errors:
Error in mt.checkX(X, classlabel, test) : the number of column of X
needs to be the same as the lengtho of classlabel
your X= 1
your classlabel is 0
I just know I am being ridiculously stupid and it's probably that I
don't remember how to use R properly, but can someone tell me how to
use mt.teststat with data read in from a text file using read.table?
Thanks
Mick