calculate_acf | R Documentation |
Wrappers around stats::acf()
and stats::pacf()
that standardize the
inputs and outputs.
calculate_acf(x, .lags = NULL, .conf = 0.95)
## S3 method for class 'numeric'
calculate_acf(x, .lags = NULL, .conf = 0.95)
calculate_pacf(x, .lags = NULL, .conf = 0.95)
## S3 method for class 'numeric'
calculate_pacf(x, .lags = NULL, .conf = 0.95)
x |
A numeric vector. |
.lags |
(Optional) Maximum lag value used in calculations. If omitted,
will be limited to one less than the number of observations in |
.conf |
(Optional) Confidence interval coverage probability. Default is for a 95% confidence interval. |
A tibble.
plot_acf()
plot_pacf()
library(tidytest)
set.seed(1914)
x <- rnorm(100)
#> ACF
calculate_acf(x)
calculate_acf(x, .lags = 10, .conf = 0.8)
#> PACF
calculate_pacf(x)
calculate_pacf(x, .lags = 10, .conf = 0.8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.