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 error

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 it

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 mvin...@aleasoft.com 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

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 BOLD

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

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 interesting to

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

2009-03-04 Thread Marc Vinyes
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 benefit. I should be able to *easily* modify it and

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

[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

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

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 c...@datanalytics.com wrote: Hello, I do not think that is the way to go. If you