I'm trying to use PAMR
I have a training file that looks like:
I don't have any problem with my training script.
My test file (test.txt) looks like:
I'm using the following script to "discover" if samples m1,m2,m3,m4,m5 are NOR or INF.
predict.data <- pamr.from.excel("test.txt", 7, sample.labels=TRUE)
pamr.predict(khan.train, predict.data$x, threshold = 3.0)
Obtaining the following error:
Error in x[posid, , drop = FALSE] :
(subscript) logical subscript too long
In addition: Warning messages:
1: In newx - centroid.overall :
longer object length is not a multiple of shorter object length
2: In (newx - centroid.overall)/sd :
longer object length is not a multiple of shorter object length
I think the problem is in my test file but I don't know how to solve it.
Thank you.