Skip to content

Instantly share code, notes, and snippets.

@MJacobs1985
Created February 21, 2022 15:18
Show Gist options
  • Save MJacobs1985/8b9aa88eb422dd660ab719638e9923a5 to your computer and use it in GitHub Desktop.
Save MJacobs1985/8b9aa88eb422dd660ab719638e9923a5 to your computer and use it in GitHub Desktop.
par(mfrow = c(1, 2))
arc_ts[, c("rochef")] %>%
acf(lag.max = 24,
main = "Autocorrelation Plot - R")
arc_ts[, c("rochef")] %>%
pacf(lag.max = 24,
main = "Partial Autocorrelation Plot - R")
ts_lags(arc_ts,
lags = c(2, 5, 8, 10, 12, 24))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment