powered by
Compute power spectrum estimates for two trigonometric windows of Blackman-Tukey type by Goertzel method.
auspec(y, lag = NULL, window = "Akaike", log = FALSE, plot = TRUE)
spectrum smoothing by 'window'
window
test statistics.
a univariate time series.
maximum lag. Default is \(2 \sqrt{n}\), where \(n\) is the length of time series y.
y
character string giving the definition of smoothing window. Allowed strings are "Akaike" (default) or "Hanning".
logical. If TRUE, the spectrum spec is plotted as log(spec).
TRUE
spec
logical. If TRUE (default), the spectrum spec is plotted.
H.Akaike and T.Nakagawa (1988) Statistical Analysis and Control of Dynamic Systems. Kluwer Academic publishers.
y <- arima.sim(list(order=c(2,0,0), ar=c(0.64,-0.8)), n = 200) auspec(y, log = TRUE)
Run the code above in your browser using DataLab