Displaying 20 results from an estimated 6000 matches similar to: "optim fails when using arima"
2004 Sep 27
1
optim error in arima
Hello,
I'm fitting a series of ARIMA models to a data set to compare fits. After taking the logs of the data and then differencing them to induce stationarity, I execute
arima( y, order=c( p, 0, q ), seasonal=list( order=c( P, 0, Q ), period=7 ) )
for various values of p, q, P and Q. For one set of these values, I get
Error in optim(init[mask], armafn, method = "BFGS", hessian
2009 Jan 27
2
optim() and ARIMA
dhabby wrote:
Last week I run in to a lot a problems triyng to fit an ARIMA model to a
time series. The problem is that the internal process of the arima
function
call function "optim" to estimate the model parameters, so far so good...
but my data presents a problem with the default method "BFGS" of the
optim
function, the output error looks like this:
2011 Oct 21
2
Arima Models - Error and jump error
Hi people,
I´m trying to development a simple routine to run many Arima models result
from some parâmeters combination.
My data test have one year and daily level.
A part of routine is:
for ( d in 0:1 )
{ for ( p in 0:3 )
{ for ( q in 0:3 )
{ for ( sd in 0:1 )
{ for ( sp in 0:3 )
{ for ( sq in 0:3 )
{
2009 Mar 03
2
modifying a built in function from the stats package (fixing arima)
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 problem:
2009 Jan 26
2
how to modify an R built-in function?
Hello R experts!
Last week I run in to a lot a problems triyng to fit an ARIMA model to a
time series. The problem is that the internal process of the arima function
call function "optim" to estimate the model parameters, so far so good...
but my data presents a problem with the default method "BFGS" of the optim
function, the output error looks like this:
Error en
2009 Jan 29
1
Arima_Like() and NaN - a (possible) problem, a patch, and RFC
Hi,
recently I have started working with R (v. 2.7.2), and I have been using
R's internal ARIMA_Like() function (from the "stats" package) to
estimate some ARIMA models. In particular, I use ARIMA_Like() in a
function "fn()" that I feed to the optim() method; the main goal is to
find optimal ARIMA prediction models for some time series.
The ARIMA_Like() function returns a
2023 Jan 05
1
R 'arima' discrepancies
Rob J Hyndman gives great explanation here
(https://robjhyndman.com/hyndsight/estimation/) for reasons why results
from R's arima may differ from other softwares.
@iacobus, to cite one, 'Major discrepancies between R and Stata for
ARIMA'
(https://stackoverflow.com/questions/22443395/major-discrepancies-between-r-and-stata-for-arima),
assign the, sometimes, big diferences from R
2009 Mar 06
0
modifying a built in function from the stats package (fixing arima) (CONCLUSIONS)
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 catched so that it doesn't halt parent loops to search for
2009 Mar 04
2
modifying a built in function from the stats package (fixing arima)
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 test it first!
>Copy the existing function into a new file, edit it and load it via
2007 Oct 04
1
hessian matrix in arima
Hi,
I am working or arima.
I think arima uses non-linear optimisation for parameter optimisation. The
standard error for parameters are computed from hessian matrix. When I use
arima model, how can I see the finial hessian got from non-linear
optimisation (BFGS for example).
Any help is appreciated.
Many thanks.
Di
[[alternative HTML version deleted]]
2015 May 22
1
returnValue()
In R devel rev.66393 (2014-08-15) it was possible to do this:
trace(optim, exit = quote(str(returnValue())))
but returnValue() does not seem to be available any more. The above
was useful to get the output of a function when it was called deep
within another function that I have no control over.
Has this been replaced by some other equivalent function?
P.S. This demonstrates that it no
2009 Mar 03
1
modifying a built in function from the stats package (fixing arima)
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 problem:
2003 Jan 09
2
using arima() function
HI, there,
When i use R, i tried to use function arima(), it complains:
Error: couldn't find function "arima"
But when I type "help.search("arima") ",
I got arima() poped up..
arima(ts) ARIMA Modelling of Time Series
arima.sim(ts) Simulate from an ARIMA Model
arima0(ts) ARIMA Modelling of Time Series -- Preliminary
2004 Mar 04
2
adding trend to an arima model
Hi,
Does anyone know a method for adding a linear/polynominal trend to a
simulated arima model using the arima.sim function?
Any help will be greatly appreciated.
Cheers,
Sam.
2007 Jan 16
2
ARIMA xreg and factors
I am using arima to develop a time series regression model, I am using arima
b/c I have autocorrelated errors. Several of my independent variables are
categorical and I have coded them as factors . When I run ARIMA I don't
get any warning or error message, but I do not seem to get estimates for all
the levels of the factor. Can/how does ARIMA handle factors in xreg?
here is some example
2004 Jul 01
2
[gently off topic] arima seasonal question
Hello R People:
When using the arima function with the seasonal option, are the seasonal
options only good for monthly and quarterly data, please?
Also, I believe that weekly and daily data are not appropriate for seasonal
parm estimation via arima.
Is that correct, please?
Thanks,
Sincerely,
Laura Holt
mailto: lauraholt_983 at hotmail.com
download!
2000 Dec 30
3
ARIMA
Thanks,
Can't find an ARIMA in base, dse1/2 or tseries, only references to. What
package is it in?
Thanks again!
Best regards,
/fb
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the
2007 Mar 16
3
ARIMA standard error
Hi,
Can anyone explain how the standard error in arima() is calculated?
Also, how can I extract it from the Arima object? I don't see it in there.
> x <- rnorm(1000)
> a <- arima(x, order = c(4, 0, 0))
> a
Call:
arima(x = x, order = c(4, 0, 0))
Coefficients:
ar1 ar2 ar3 ar4 intercept
-0.0451 0.0448 0.0139 -0.0688 0.0010
s.e.
2003 Apr 07
1
filtering ts with arima
Hi,
I have the following code from Splus that I'd like to migrate to R. So far,
the only problem is the arima.filt function. This function allows me to
filter an existing time-series through a previously estimated arima model,
and obtain the residuals for further use. Here's the Splus code:
# x is the estimation time series, new.infl is a timeseries that contains
new information
# a.mle
2009 Mar 05
2
modifying a built in function from the stats package (fixing arima)
>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 you'll
>need to get
>that shared