auto_corr | R Documentation |
This function can estimate either the autocovariance / autocorrelation for univariate time series, or the partial autocovariance / autocorrelation for univariate time series.
auto_corr(
x,
lag.max = NULL,
pacf = FALSE,
type = "correlation",
demean = TRUE,
robust = FALSE
)
x |
A |
lag.max |
An |
pacf |
A |
type |
A |
demean |
A |
robust |
A |
lagmax
default is 10*log10(N/m)
where N
is the number of
observations and m
is the number of time series being compared. If
lagmax
supplied is greater than the number of observations N, then one
less than the total will be taken (i.e. N - 1).
An array
of dimensions N \times 1 \times 1
.
Yuming Zhang
m = auto_corr(datasets::AirPassengers)
m = auto_corr(datasets::AirPassengers, pacf = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.