Description Usage Arguments Details Value Author(s) References See Also Examples
Plot the autocorrelation function of the residuals
1 |
x |
a model fitted by |
lags |
an integer indicating the number of lags to compute the partial autocorrelation coefficients |
acf.too |
a logical indicate whether the autocorrelation coefficients should be computed too. Default is |
type |
a quoted string indicating the type of residuals to extract. Default is |
new |
if |
... |
further options for |
This function computes the partial autocorrelation function (ACF) from the residuals x
and plot it up to lags
. This function was first designed to plot partial autocorrelation coefficients only. However, as some users prefer to analyse de autocorrelation coefficient, the latest was added as option acf.too
.
The function returns a list with the autocorrelations coefficients up to lags
acf |
a vector of autocorrelations coefficients. If |
pacf |
a vector of partial autocorrelations coefficients |
Washington Junger wjunger@ims.uerj.br and Antonio Ponce de Leon ponce@ims.uerj.br
Box, G., Jenkins, G., Reinsel, G. (1994) Time Series Analysis : Forecasting and Control. 3 ed., Prentice Hall.
Diggle, P. J. (1990) Time Series: A Biostatistical Introduction. Oxford University Press.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.