Displaying 20 results from an estimated 20000 matches similar to: "arima residuals"
2010 Sep 28
0
the arima()-function and AICc
Hi
I'm trying to fit arima models with the arima() function and I have two
questions.
######
##1. ##
######
I have n observations for my time series. Now, no matter what
arima(p,d,q)- model I fit, I always get n residuals. How is that possible?
For example: If I try this out myself on an AR(1) and calculate the
fitted values from the estimated coefficients I can calculate n-1
residuals.
2007 Apr 03
0
problems with residuals of an arima model
Hi all!
I want to fit a time series with 17376 values by using the arima() function.
If I extract the residuals from the fitted model there are values for the
residuals 1 to 710 but the residuals 711 to 17376 have the value NA.
Does anybody know what the problem could be? Is the function arima()
restricted to a maximum length of the underlying time series?
Besides, is there a better possibility
2009 Sep 29
0
Incoherence between arima.sim and auto.arima
Hello,
I have a question about function arima.sim
I tried to somulate a AR(1) process, with no innovation, no error term.
I used this code:
library(forecast)
e=rnorm(100,mean=0,sd=0)
series=arima.sim(model=list(ar=0.75),n=100,innov=e)+20
Then I tried to applicate ti this series auto.arima function:
mod1<-auto.arima(series,stepwise=FALSE,trace=TRUE,ic='aicc')
The best model returned
2010 Oct 29
0
true time series lags behind fitted values in arima model
Hi
I am fitting an arima model to some time series X. When I was comparing
the fitted values of the model to the true time series I realized that
the true time series lags one time step behind the fitted values of the
arima model. And this is the case for any model. When I did a simple
linear regression using lm to check, I also find the same results, that
the true series lags behind the
2010 Aug 19
1
How to include trend (drift term) in arima.sim
I have been trying to simulate from a time series with trend but I don't see
how to include the trend in the arima.sim() call. The following code
illustrates the problem:
# Begin demonstration program
x <- c(0.168766559, 0.186874000, 0.156710548, 0.151809531, 0.144638812,
0.142106888, 0.140961714, 0.134054659, 0.138722419, 0.134037018,
0.122829846, 0.120188714,
2009 Feb 20
0
residuals from a fractional arima model and other questions
Dear list and Martin,
I'm testing different approaches to fit an electricity demand time series and come upon the fracdiff package (v 1.3-1) for fitting fractional ARIMA models. The following questions are motivated by this package.
1. Despite having a help page, the residuals and fitted functions don't seem to have implementation, or did i miss something obvious? Alternatively, having a
2009 Oct 22
1
arima crashes too
Another pathological test.
arima does not crash for that series that crashes arma:
arima(c(2.01, 2.22, 2.09, 2.17, 2.42), order=c(1,0,0))
However, arima crashes for this:
arima(c(1.71, 1.78, 1.95, 1.59, 2.13), order=c(1,0,0))
arima seems pretty consistent in its crashing behaviour, since crashing for
one series means crashing for all affine series:
lets.crash.arima <- c(71, 78, 95, 59,
2011 Feb 12
2
Time unit in ts() and arima() functions
This question is surely trivial, sorry. I'm afraid I'm misunterpreting
the information I got with the documentation, and I'm a little bit
confused. I'm just an engineer with some little skills in statistics.
Well, I have a time series - 600 days long - with some weekly
periodicity inside. So far, so good.
Well, if I define the time series with, say :
a <- ts(b,
2009 Jul 21
0
Specifying initial values for arima.sim
Hi Everyone,
I'm having a problem with arima.sim. Namely specifying inital values
for the series.
If I generate a random walk
> vs = rnorm(100,0,1)
> xs = cumsum(vs)
and fit an ARIMA(1,0,0) to it
> xarima = arima(xs,order=c(1,0,0))
> xarima
Call:
arima(x = xs, order = c(1, 0, 0))
Coefficients:
ar1 intercept
0.9895 8.6341
s.e. 0.0106 6.1869
I should
2008 Oct 24
0
unstable MA results in ARIMA?
Dear colleagues,
I am relatively new to R and time series and so I am experiencing
difficulties in interpreting the output of "arima" in MA models (but not
in AR models). I cannot make sense of the 1st innovations returned by
"arima".
In an AR(1) model I expect data[t]=phi1*data[t-1]+a[t] and in a MA(1)
model data[t]=a[t]+theta1*a[t-1]. My interpretation from R-help is
2002 Sep 23
0
arima() in package ts.
I've been trying to get comfy with arima() and associated functions
in the ts() package. I'm thinking seriously about using this
package, and R generally, in a 4th year intro time series course that
I'm teaching this autumn.
I have a couple of questions about arima:
(1) The help file says that residuals component of the value returned
by arima() consists of the
2004 Jun 17
1
Error with arima()
Could someone please give a brief explanation, or pointer to an explanation,
of the following error:
> arima(ts.growth, order = c(1,0,0),include.mean=T)
Error in arima(ts.growth, order = c(1, 0, 0), include.mean = T) :
non-stationary AR part from CSS
and why it does not arise with
> arima0(ts.growth, order = c(1,0,0))
Many thanks
____________________________
Dr. Daniel P. Bebber
2011 Jun 30
0
CCF of two time series pre-whitened using ARIMA
Hi all,
I have two time series that I would like to correlate but as they are
autocorrelated, I am "pre-whitening" them first by fitting ARIMA models,
then correlating their residuals....as described in
https://onlinecourses.science.psu.edu/stat510/?q=node/75
However, http://www.stat.pitt.edu/stoffer/tsa2/Rissues.htm discusses some
issues with ARIMA in R. In particular, for issue 2, if
2003 Sep 01
1
Arima with an external regressor
Hello,
Does anybody know if the function arima with an external regressor (xreg)
applies the auto correlation on the dependant variable or on the residuals.
In comparison with SAS (proc autoreg), it seems that the auto correlation
applies on the residuals but i'd like to have the confirmation.
I want to estimate:
Y[t] = a[1]*X[t] + a[2] + E[t]
with E[t]=b[1]*E[t-1]
Should I use :
arima(Y,
2009 Jun 17
0
p-value for the parameter in ARIMA model with R
Dear All,
I decided to use an AR(1) model for the residual series and trying to find the p-value for each parameter by using arima command in R, but i never find it from the output. The output gives me the parameter and mean's value, its standard error, estaimated variance, AIC and loglikehood, but no p-value is given.
What i did was, i assign the residuals into the 'residual'
2017 May 16
0
Wish for arima function: add a data argument and a formula-type for regressors
Hi,
Using arima on data that are in a data frame, especially when adding
xreg, would be much easier if the arima function contained
1) a "data=" argument
2) the possibility to include the covariate(s) in a formula style.
Ideally the call could be something like
> arima(symptome, order=c(1,0,0), xreg=~trait01*mesure0, data=anxiete)
( or arima(symptome~trait01*mesure0,
2004 May 02
1
arima problems when using argument fixed=
As I am reading ?arima, only NA entries in the argument fixed=
imports. The following seems to indicate otherwise:
x <- arima.sim(model=list(ar=0.8), n=100) + (1:100)/50
> t <- 1:100
> mod1 <- lm(x ~ t)
>
> init1 <- c(0, coef(mod1)[2])
> fixed1 <- c(as.numeric(NA), 0)
>
> arima(x, order=c(1,0,0), xreg=t, include.mean=FALSE, init=init1,
fixed=fixed1)
2011 Jul 20
0
The C function getQ0 returns a non-positive covariance matrix and causes errors in arima()
Hi,
the function makeARIMA(), designed to construct some state space
representation of an ARIMA model, uses a C function called getQ0,
which can be found at the end of arima.c in R source files (library
stats). getQ0 takes two arguments, phi and theta, and returns the
covariance matrix of the state prediction error at time zero. The
reference for getQ0 (cited by help(arima)) is:
2007 Dec 01
1
modeling time series with ARIMA
Good afternoon!
I'm trying to model a time series on the following data, which represent a monthly consumption of juices:
>x<-scan()
1: 2859 3613 3930 5193 4523 3226 4280 3436 3235 3379 3517 6022
13: 4465 4604 5441 6575 6092 6607 6390 6150 6488 5912 6228 10196
25: 7612 7270 8617 9535 8449 8520 9148 8077 7824 7991 7660 12130
37: 9135 9512 9631 12642
2008 Jan 31
0
xreg in ARIMA function
Hi everyone,
I'm trying to include an external regressor in my ARIMA model but am having some problems with the data format in R. I've named my dependent variable of interest "count" and the external regressor "abc". The external regressor is a binary variable. Here are the contents of "abc" and the model I've attemped (along with its error message):