auspec | R Documentation |
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)
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 |
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 |
spec |
spectrum smoothing by ' |
stat |
test statistics. |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.