Description Usage Arguments Details Value Note Author(s) References See Also Examples
Estimates an ARIMA model for a univariate time series, including a sparse ARIMA model.
1 2 
x 
a univariate time series. 
p 
the AR order, can be a positive integer or a vector with several positive
integers. The default is 
d 
the degree of differencing. The default is 
q 
the MA order, can be a positive integer or a vector with several positive
integers. The default is 
PDQ 
a vector with three nonnegative integers for specification of the seasonal
part of the ARIMA model. The default is 
S 
the period of seasonal ARIMA model. The default is 
method 
fitting method. The default is 
intercept 
a logical value indicating to include the intercept in ARIMA model. The
default is 
output 
a logical value indicating to print the results in R console. The default is

... 
optional arguments to 
This function is similar to the ESTIMATE statement in ARIMA procedure of SAS,
except that it does not fit a transfer function model for a univariate time series. The
fitting method is inherited from arima
in stats
package. To be
specific, the pure ARIMA(p,q) is defined as
X[t] = μ + φ[1]*X[t1] + ... + φ[p]*X[p] + e[t]  θ[1]*e[t1]  ...  θ[q]*e[tq].
The p
and q
can be a vector for fitting a sparse ARIMA model. For example,
p = c(1,3),q = c(1,3)
means the ARMA((1,3),(1,3)) model defined as
X[t] = μ + φ[1]*X[t1] + φ[3]*X[t3] + e[t]  θ[1]*e[t1]  θ[3]*e[t3].
The PDQ
controls the
order of seasonal ARIMA model, i.e., ARIMA(p,d,q)x(P,D,Q)(S), where S is the seasonal
period. Note that the difference operators d
and D = PDQ
[2] are different.
The d
is equivalent to diff(x,differences = d)
and D is
diff(x,lag = D,differences = S)
, where the default seasonal period is
S = frequency(x)
.
The residual diagnostics plots will be drawn.
A list with class "estimate
" and the same results as
arima
. See arima
for
more details.
Missing values are removed before the estimate. Sparse seasonal ARIMA(p,d,q)x(P,D,Q)(S) model is not allowed.
Debin Qiu
Brockwell, P. J. and Davis, R. A. (1996). Introduction to Time Series and Forecasting. Springer, New York. Sections 3.3 and 8.3.
1 2 3 4 5 6 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.