TSSS (version 1.3.4-5)

marspc: Cross Spectra and Power Contribution

Description

Compute cross spectra, coherency and power contribution.

Usage

marspc(arcoef, v, plot = TRUE, ...)

Value

An object of class "marspc" which has a plot method. This is a list with the following components:

spec

cross spectra.

amp

amplitude spectra.

phase

phase spectra.

coh

simple coherency.

power

decomposition of power spectra.

rpower

relative power contribution.

Arguments

arcoef

AR coefficient matrices.

v

innovation variance matrix.

plot

logical. If TRUE (default), cross spectra, coherency and power contribution are plotted.

...

graphical arguments passed to the plot method.

References

Kitagawa, G. (2020) Introduction to Time Series Modeling with Applications in R. Chapman & Hall/CRC.

Examples

Run this code
# Yaw rate, rolling, pitching and rudder angle of a ship
data(HAKUSAN)
yy <- as.matrix(HAKUSAN[, c(1,2,4)])
nc <- dim(yy)[1]
n <- seq(1, nc, by = 2) 
y <- yy[n, ]
z <- marfit(y, lag = 20)

marspc(z$arcoef, v = z$v)

Run the code above in your browser using DataLab