my.acf {waveslim} | R Documentation |
Computes the autocovariance function for a time series.
my.acf(x)
x |
time series |
The series is zero padded to twice its length before the discrete Fourier transform is applied. Only the values corresponding to nonnegative lags are provided.
The autocovariance function, for all nonnegative lags, is output.
B. Whitcher
data(ibm) ibm.returns <- diff(log(ibm)) plot(1:length(ibm.returns) - 1, my.acf(ibm.returns), type="h", xlab="lag", ylab="ACVS", main="Autocovariance Sequence for IBM Returns")