[R] how to tabulate the prediction value using table function for naive baiyes in R

2010-06-30 Thread Aadhithya
giving me the following error when I execute the line "table(pred,cl)" Error in table(pred,cl):all arguments must have the same length I am not sure where I am going wrong. I want the confusion matrix using table function but I am not able to get it . Please help me .Thanks in advance. -A

[R] help on naivebayes function in R

2010-06-30 Thread Aadhithya
matrix using table function but I am not able to get it . Please help me . I will be really grateful .Thanks in advance. -Aadhithya -- View this message in context: http://r.789695.n4.nabble.com/help-on-naivebayes-function-in-R-tp2272720p2272720.html Sent from the R help mailing list ar

Re: [R] Need help for SVM code for microarray classification

2010-06-29 Thread Aadhithya
L   0       10 why is there a difference in the result which I had given in the before post?does this mean doing transpose classifies the samples better? or is there any reason for this? I am sorry I am troubling you a lot  but seriously its a very timely help I am really thankful to you. -Aadh

Re: [R] Need help for SVM code for microarray classification

2010-06-29 Thread Aadhithya
nce in the result which I had given in the before post?does this mean doing transpose classifies the samples better? or is there any reason for this? Thanks a ton in advance. -Aadhithya -- View this message in context: http://r.789695.n4.nabble.com/Need-help-for-SVM-code-for-microarray-classifi

Re: [R] Need help for SVM code for microarray classification

2010-06-29 Thread Aadhithya
other way we can interpret this result . I am sorry I am troubling you a lot but seriously its a very timely help I am really thankful to you. -Aadhithya -- View this message in context: http://r.789695.n4.nabble.com/Need-help-for-SVM-code-for-microarray-classification-tp2271652p2272563.html S

Re: [R] Need help for SVM code for microarray classification

2010-06-29 Thread Aadhithya
whether it is ALL or AML class and from the next line I have the expression values is this the right way to give the dataset to R for SVM classification? Thanks a lot for immediate reply. I am really grateful. - Aadhithya -- View this message in context: http://r.789695.n4.nabble.com/Need-help-for

[R] Need help for SVM code for microarray classification

2010-06-28 Thread Aadhithya
Hi I am Aadhithya I am trying to write a code to classify microarray data (AML and ALL) using SVM in R my code goes like this : library(e1071) train<-read.table("Z:/Documents/train.txt",header=T); test<-read.table("Z:/Documents/test.txt",header=T); cl <- c(c(rep(&quo