Thank you for your reply! Yes, I am using the svm and I do not have new data 
(how do you create new data?), all I have these 12 samples which I want to 
classify (predict) these into two group so that I do have six sample in each 
group?

Many thanks,
Samuel

--- On Thu, 9/17/09, Steve Lianoglou <mailinglist.honey...@gmail.com> wrote:

From: Steve Lianoglou <mailinglist.honey...@gmail.com>
Subject: Re: [R] SVM
To: "Samuel Okoye" <samu...@yahoo.com>
Cc: r-h...@stat.math.ethz.ch
Date: Thursday, September 17, 2009, 8:36 AM

Hi,

On Sep 17, 2009, at 7:39 AM, Samuel Okoye wrote:

> Hello,
> 
> I have 12 sample each sample has got 1000 observation, i.e I have a matrix X 
> with 1000 rows and 12 columns!
> 
> m <- svm(t(X))
> p <- predict (m)
> 
> Can anyone tell me how to use svmtrain() in R!

I guess you're using the svm in the e1071 package?
What's svmtrain?

The call to "svm" trains the svm.
The call to predict uses it on new data, but you need to give it new data to 
predict on. You have:

p <- predict(m)

What exactly do you want your model to do? Predict on what?

Please see the code in the Examples section of ?svm .. it's pretty straight 
forward. Let us know what problems you're having understanding those examples 
and we can try to offer some insight.

-steve

--
Steve Lianoglou
Graduate Student: Computational Systems Biology
  |  Memorial Sloan-Kettering Cancer Center
  |  Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact




      
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to