Re: [R] How to insert a certain model in SVM regarding to fixed kernels

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Fri 12 Aug 2005 - 22:18:44 EST

On 8/12/05, Gabor Grothendieck <ggrothendieck@gmail.com> wrote:
> David, Please correct me if I am wrong but I think svm partially works
> with dyn although I don't remember what the specific limitations were.
> Its possible that what works already is enough for Amir. For example,
>
> library(e1071)
> library(dyn)
> set.seed(1)
> y <- ts(rnorm(100))
> y.svm <- dyn$svm(y ~ lag(y))

The above statement should have been y.svm <- dyn$svm(y ~ lag(y,-1)) since we want to bring the previous value of y forward so that it is being used to predict y (rather than predicting y by bringing the future value of y backward). In R positive values for the lag move the series backward and negative values move it forward.

> yp <- predict(y.svm)
> ts.plot(y, yp, col = 1:2)
>
> On 8/12/05, David Meyer <david.meyer@wu-wien.ac.at> wrote:
> > Amir,
> >
> > >
> > > Suppose that we want to regress for example a certain autoregressive
> > > model using SVM. We have our data and also some fixed kernels in
> > > libSVM behinde e1071 in front. The question: Where can we insert our
> > > certain autoregressive model ? During creating data frame ?
> >
> > Yes, I think.
> >
> > > Or perhaps we can make a
> > > relationship between our variables ended to desired autoregressive
> > > model ?
> >
> > Gabor Grothendieck's `dyn` package provides support for the use of
> > general regression functions for time series analysis, and we are
> > currently struggling to integrate the e1071 interface into that
> > framework (but nothing is ready so far). Is it that kind of support you
> > have been looking for?
> >
> > Cheers,
> > David
> >
> > >
> > > Thanks a lot for your help.
> > > Amir Safari
> > >
> > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam? Yahoo! Mail has the best spam protection around
> > > http://mail.yahoo.com
> >
> >
> > --
> > Dr. David Meyer
> > Department of Information Systems and Operations
> >
> > Vienna University of Economics and Business Administration
> > Augasse 2-6, A-1090 Wien, Austria, Europe
> > Fax: +43-1-313 36x746
> > Tel: +43-1-313 36x4393
> > HP: http://wi.wu-wien.ac.at/~meyer/
> >
> > ______________________________________________
> > R-help@stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> >
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Aug 12 22:25:04 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:47 EST