auto.corr | R Documentation |
Estimates the autocorrelation in the data. This function is used by other functions and will generally not be used directly by users.
auto.corr(x, model, tt = NULL, int = NULL, mstep = NULL)
x |
vector of sample means |
model |
the model being evaluated |
This function calculates the autocorrelation in a vector of sample means defined as the correlation of the first n-1 observations with the last n-1. The autocorrelation is calculated directly on the sample means if the evaluated model is stasis. If a different model is evaluated (random walk or directional trend), the data is detrended prior to the calculation of autocorrelation.
the autocorrelation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.