auspec {timsac} | R Documentation |
Power Spectrum
Description
Compute power spectrum estimates for two trigonometric windows of Blackman-Tukey type by Goertzel method.
Usage
auspec(y, lag = NULL, window = "Akaike", log = FALSE, plot = TRUE)
Arguments
y |
a univariate time series. |
lag |
maximum lag. Default is |
window |
character string giving the definition of smoothing window. Allowed strings are "Akaike" (default) or "Hanning". |
log |
logical. If |
plot |
logical. If |
Details
Hanning Window : | a1(0)=0.5, | a1(1)=a1(-1)=0.25, | a1(2)=a1(-2)=0 |
Akaike Window : | a2(0)=0.625, | a2(1)=a2(-1)=0.25, | a2(2)=a2(-2)=-0.0625 |
Value
spec |
spectrum smoothing by ' |
stat |
test statistics. |
References
H.Akaike and T.Nakagawa (1988) Statistical Analysis and Control of Dynamic Systems. Kluwer Academic publishers.
Examples
y <- arima.sim(list(order=c(2,0,0), ar=c(0.64,-0.8)), n = 200)
auspec(y, log = TRUE)
[Package timsac version 1.3.8-4 Index]