Displaying 20 results from an estimated 5000 matches similar to: "auto.arima and intervention analysis"
2003 Apr 21
2
Anyone Familiar with Using arima function with exogenous variables?
I've posted this before but have not been able to locate what I'm doing
wrong. I cannot determine how the forecast is made using the estimated
coefficients from a simple AR(2) model when there is an exogenous
variable. Does anyone know what the problem is? The help file for arima
doesn't show the model with any exogenous variables. I haven't been able
to locate any documents
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,
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
2008 Jul 23
1
Time series reliability questions
Hello all,
I have been using R's time series capabilities to perform analysis for quite
some time now and I am having some questions regarding its reliability. In
several cases I have had substantial disagreement between R and other packages
(such as gretl and the commercial EViews package).
I have just encountered another problem and thought I'd post it to the list. In
this case,
2003 Apr 16
0
arima function - estimated coefficients and forecasts
I'm using the arima function to estimate coefficients and also using
predict.Arima to forecast. This works nicely and I can see that the
results are the same as using SAS's proc arima.
I can also take the coefficent estimates for a simple model like
ARIMA(2,1,0) and manually compute the forecast. The results agree to 5
or 6 decimal places. I can do this for models with and without
2008 Jan 11
1
question about xreg of arima
Hi,
I am trying to understand exactly what xreg does in arima. The documentation
for xreg says:"xreg Optionally, a vector or matrix of external regressors,
which must have the same number of rows as x." What does this mean with
regard to the action of xreg in arima?
Apparently somehow xreg made the following two arima fit equivalent in R:
arima(x, order=c(1,1,1), xreg=1:length(x))
is
2007 Mar 02
0
R: ARIMA forecasting
Dear all,
I just have a short question regarding the forecasting of ARIMA models with
external regressors.
I tried to program a ARX(1) model
arx.mod <- arima(reihe.lern, order = c(1, 0, 0), seasonal =
list(order = c(0, 0, 0), period = 52), xreg = lern.design, include.mean =
TRUE)
for which I need to estimate the next (105th) value. Xreg=lern.design is -
at this time - 104 rows long. I
2012 Apr 26
1
Using the R predict function to forecast a model fit with auto.arima function
Hello R users,
Hope everyone is doing great.
I have a dataset that is in .csv format and consists of two columns: one
named Period (which contains dates in the format yyyy_mm) and goes from
1995_10 to 2007_09 and the second column named pcumsdry which is a
volumetric measure and has been formatted as numeric without any commas or
decimals.
I imported the dataset as pauldataset and made use of
2012 Nov 14
0
Time Series with External Regressors in R Problems with XReg
Hello everyone,
Hope you all are doing great! I have been fitting arima models and
performing forecasts pretty straightforwardly in R.
However, I wanted to add a couple of regressors to the arima model to see if
it could improve the accuracy of the forecasts but have had a hard time
trying to do so.
I used the following R function:
arima(x, order = c(0, 0, 0),
seasonal = list(order = c(0, 0,
2009 Nov 16
1
ARMAX model fitting with arima
I am trying to understand how to fit an ARMAX model with the arima
function from the stats package. I tried the simple data below, where
the time series (vector x) is generated by filtering a step function
(vector u, the exogenous signal) through a lowpass filter with AR
coefficient equal to 0.8. The input gain is 0.3 and there is a 0.01
normal white noise added to the output:
x <- u
2005 Jul 08
1
help with ARIMA and predict
I'm trying to do the following out of sample
regression with autoregressive terms and additional x
variables:
y(t+1)=const+B(L)*y(t)+C(1)*x_1(t)...+C(K)*x_K(t)
where:
B(L) = lag polynom. for AR terms
C(1..K) = are the coeffs. on K exogenous variables
that have only 1 lag
Question 1:
-----------
Suppose I use arima to fit the model:
2009 Jul 15
2
storing lm() results and other objects in a list
to clean up some code I would like to make a list of arbitrary length
to store?various objects for use in a loop
sample code:
############ BEGIN SAMPLE ##############
# You can see the need for a loop already
linearModel1=lm(modelSource ~ .,mcReg)
linearModel2=step(linearModel1)
linearModel3=lm(modelSource ~ .-1,mcReg)
linearModel4=step(linearModel3)
#custom
linearModel5=lm(modelSource ~ .
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,
2007 Jan 10
0
ARIMA and xreg
Hello,
I am fairly new to time series analysis, and I am wondering if anyone could
point me to some good references related to mechanics of what is going on
when you fit a model using arima that includes a set of external regressors
(i.e., use the xreg= feature).
Thank you,
Spencer
[[alternative HTML version deleted]]
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
2008 Nov 27
1
"xreg" in ARIMA modelling.
Hello,
Does anyone know how the parameter estimates are calculated for xreg
variables when called as part of an arima() command, or know of any
literature that provides this info? In particular, I was wondering if there
is a quick way to compare different combinations of "xreg" variables in the
arima() fit in the same way that you would in multiple regression (using AIC
& R^2
2004 Feb 04
1
arima function
Hello,
I am a beginner user of R and I would like to estimate a model with AR
errors. I use arima function:
modele
<-arima(conso,xreg=var.exogenes,order=c(ordre,0,0),include.mean=TRUE,method
="CSS")
My inputs are dummies for each month except one, and the same thing for
each day and each hour. I have this error message:
Warning message:
possible convergence problem: optim gave
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):
2010 May 25
2
summary of arima model in R
Hi,
I want to give a summary or anova for "arima" model in R, as
"summary", and "anova" for "lm".
As including various intervention factors in arima(xreg = ) part, I
want to assess the significancy of thse factors.
I can do it using interrupted analysis of time series by linear
regression, but want to see whether arima model works for the data
first.
2003 Dec 18
0
Help with predict.Arima with external regressor values
Hi all there
I am enjoying R since 2 weeks and I come to my first deadlock, il am trying
to use predict.Arima in the ts package.
I get a "Error in cbind(...) : cannot create a matrix from these types"
-- Start R session -----------------------------------------------------
> fitdiv <- arima(data, c(2, 0, 3), xreg = y ) ; print(fitdiv)
Call:
arima(x = data, order = c(2, 0, 3),