Re: [R] modifying a built in function from the stats package (fixing arima) (CONCLUSIONS)

2009-03-06 Thread MarC Vinyes Raso
Thanks a lot to everybody that helped me out with this. Conclusions: (1) In order to edit arima in R: >fix(arima) or alternatively: >arima<-edit(arima) (2) This is not contained in the "Introduction to R" manual. (3) A "productive" fix of arima is attached (arma coefficients printed out and er

Re: [R] modifying a built in function from the stats package (fixing arima)

2009-03-05 Thread Mark Difford
Hi Marc, There is in fact an even shorter route: ?fix Regards, Mark. Rolf Turner-3 wrote: > > > On 5/03/2009, at 10:00 PM, Marc Vinyes wrote: > >> It is quite exagerated that I have to build R in order to modify an >> R file >> without messing with dlls, and I think it would be interestin

Re: [R] modifying a built in function from the stats package (fixing arima)

2009-03-05 Thread Rolf Turner
On 5/03/2009, at 10:00 PM, Marc Vinyes wrote: It is quite exagerated that I have to build R in order to modify an R file without messing with dlls, and I think it would be interesting to make this process easier, but for now I'm happy to be productive again. There is probably (almost sure

Re: [R] modifying a built in function from the stats package (fixing arima)

2009-03-05 Thread Marc Vinyes
>Just a quick note on your original question: >if you use edit(arima), you have to remember that it returns the >modified function, which then must be stored. >I.e, use >arima<-edit(arima) >instead of just >edit(arima) >,and changes should be stored. THIS IS IT. IMHO, this should be written in

Re: [R] modifying a built in function from the stats package (fixing arima)

2009-03-05 Thread Gustaf Rydevik
On Thu, Mar 5, 2009 at 10:00 AM, Marc Vinyes wrote: >>If you ***look at the code*** for arima you will see that ``%+%'' is >>defined >>in terms of a call to ``.Call()'' which calls ``R_TSconv''.  So >>apparently >>R_TSconv is a C or Fortran function or subroutine in a ``shared >>object library'' >

Re: [R] modifying a built in function from the stats package (fixing arima)

2009-03-05 Thread Marc Vinyes
>If you ***look at the code*** for arima you will see that ``%+%'' is >defined >in terms of a call to ``.Call()'' which calls ``R_TSconv''. So >apparently >R_TSconv is a C or Fortran function or subroutine in a ``shared >object library'' >or dll upon which arima depends. Hence to do anything with

Re: [R] modifying a built in function from the stats package (fixing arima)

2009-03-04 Thread Rolf Turner
On 4/03/2009, at 10:06 PM, Marc Vinyes wrote: Dear Carlos and Kjetil, Thanks for your answer. I do not think that is the way to go. If you believe that your algorithm is better than the existing one, talk to the author of the package and discuss the improvement. The whole community will

Re: [R] modifying a built in function from the stats package (fixing arima)

2009-03-04 Thread Marc Vinyes
all-td21836156.html Any other hints or maybe help with the error that I'm getting? -Mensaje original- De: Carlos J. Gil Bellosta [mailto:c...@datanalytics.com] Enviado el: 03 March 2009 21:30 Para: Marc Vinyes CC: r-help@r-project.org Asunto: Re: [R] modifying a built in function from

Re: [R] modifying a built in function from the stats package (fixing arima)

2009-03-03 Thread Kjetil Halvorsen
adding to the points above: 3) after downloading the source package (stats) containung arima, rename it (my.arima) and then do the changes. Kjetil On Tue, Mar 3, 2009 at 5:29 PM, Carlos J. Gil Bellosta wrote: > Hello, > > I do not think that is the way to go. If you believe that your alg

Re: [R] modifying a built in function from the stats package (fixing arima)

2009-03-03 Thread Carlos J. Gil Bellosta
Hello, I do not think that is the way to go. If you believe that your algorithm is better than the existing one, talk to the author of the package and discuss the improvement. The whole community will benefit. If you want to tune the existing function and tailor it to your needs, you have several

[R] modifying a built in function from the stats package (fixing arima)

2009-03-03 Thread Marc Vinyes
Dear members of the list, I'm a beginner in R and I'm having some trouble with: "Error in optim(init[mask], armafn, method = "BFGS", hessian = TRUE, control = optim.control, : non-finite finite-difference value [8]" when running "arima". I've seen that some people have come accross the same p