Thank you very much! Eleni
On Fri, Dec 11, 2009 at 7:19 PM, Steve Lianoglou < mailinglist.honey...@gmail.com> wrote: > Hi Eleni, > > On Dec 11, 2009, at 12:04 PM, Eleni Christodoulou wrote: > > > Dear R users, > > > > I am trying to apply SVM regression for a set of microarray data. I am > using > > the function svm() under the package {e1071}. Can anyone tell me what > > the *residuals > > *value represents? I have some observed values *y_obs* for the parameter > > that I want to estimate and I would expect that *svm$residuals = y_obs - > > svm$fitted. > > *However, this does not happen...Does anyone have any idea on that? > > This actually is what's happening. The $residuals that are reported in the > model are against your *scaled* y-vector. > > So, with your data: > > R> m <- svm(x,y) > R> all(scale(y) - predict(m,x) == m$residuals) > [1] TRUE > > -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<http://cbio.mskcc.org/%7Elianos/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.