mulspe | R Documentation |
Compute multiple spectrum estimates using Akaike window or Hanning window.
mulspe(y, lag = NULL, window = "Akaike", plot = TRUE, ...)
y |
a multivariate time series with | ||||||
lag |
maximum lag. Default is | ||||||
window |
character string giving the definition of smoothing window. Allowed strings are "Akaike" (default) or "Hanning". | ||||||
plot |
logical. If TRUE (default) spectrums are plotted as
| ||||||
... |
graphical arguments passed to |
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 ' | ||||
specmx |
spectrum matrix. An object of class
| ||||
stat |
test statistics. | ||||
coh |
simple coherence by ' |
H.Akaike and T.Nakagawa (1988) Statistical Analysis and Control of Dynamic Systems. Kluwer Academic publishers.
sgnl <- rnorm(1003)
x <- matrix(0, nrow = 1000, ncol = 2)
x[, 1] <- sgnl[4:1003]
# x[i,2] = 0.9*x[i-3,1] + 0.2*N(0,1)
x[, 2] <- 0.9*sgnl[1:1000] + 0.2*rnorm(1000)
mulspe(x, lag = 100, window = "Hanning")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.