Problem with PAMR (pamr.predict)
0
0
Entering edit mode
7.1 years ago
Pol ▴ 70

I'm trying to use PAMR

I have a training file that looks like:

https://ibb.co/kxa87b

I don't have any problem with my training script.

My test file (test.txt) looks like:

https://ibb.co/hhNMSb

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.

R microarray • 1.7k views
ADD COMMENT

Login before adding your answer.

Traffic: 2172 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6