Hi,
  I am trying to do multiclass gene selection using SVM-RFE, I use e1071, which is a wrapper for LIBSVM. I tried the code on srbct data set, which has 2308 genes and 63 samples in 4 classes. When I use
 SampleSVM1 = svm(srbct.x,srbct.y). 

 and look at 
 attributes(SampleSVM1)
$names
 [1] "call"      "type"      "kernel"    "cost"      "degree"    "gamma"    
 [7] "coef0"     "nu"        "epsilon"   "sparse"    "scaled"    "x.scale"  
[13] "y.scale"   "nclasses"  "levels"    "tot.nSV"   "nSV"       "labels"   
[19] "SV"        "index"     "rho"       "compprob"  "probA"     "probB"    
[25] "sigma"     "coefs"     "na.action" "fitted"    "residuals"

$class
[1] "svm"

When I type SampleSVM1$nclasses, it pops up "2", the correct answer should be 4. 
when I type SampleSVM1$tot.nSV, it is 51, which seems to be correct.
however, when I type SampleSVM1$nSV, it pops up 0,0. 

 Does anybody know what's the problem?

Thanks,

James

 
---------------------------------

	[[alternative HTML version deleted]]

