ACVS {sapa} | R Documentation |
Calculates the autocovariance sequence for an input time series.
ACVS(x, biased=TRUE, center=TRUE)
x |
a numeric vector representing a uniformly sampled real-valued time series. |
biased |
a logical value. If |
center |
a logical value. If |
a numeric vector containing the single-sided ACVS for lags k=0,...,N-1 where N is the length of the input time series.
SDF
.
## calculate the ACVS for an N(0,1) realization plot(seq(0,99), ACVS(rnorm(100)), type="l", lwd=2, xlab="lag",ylab="ACVS(rnorm(100))") ifultools::gridOverlay()