Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

MTS2pM

Converts MTS representation of a VARMA process to a polyMatrix representation


Description

The MTS representation of VARMA process is a list of 13 elements. The necessary elements to represent a VARMA model are the c(2, 3, 4, 5, 8, 11, 12, 13) elements: ARorder, MAorder, cnst, coef, Sigma, Phi, Theta, Ph0. The other five are redundant parameters.

Usage

MTS2pM(M)

Arguments

M

an arbitrary VARMA model list-object of the MTS package

Details

MTS (Multivariate Time Series) is a general package for analyzing multivariate linear time series, written by Ruey S. Tsay.

Value

An pMvarma class object, equivalent with the M input object, created by the package MTS.

See Also

Examples

# runs longly
library(MTS)
set.seed(1)
yt <- VARMAsim(300,arlags=1,malags=1,
        phi=matrix(c(0.2,-0.6,0.3,1.1),2,2),
        theta=matrix(c(-0.5,0,0,-0.5),2,2),
        sigma=diag(2))$series
M <- VARMA(yt,p=2,q=2,include.mean=TRUE)
M[-c(1,6,7,9,10)]
pMvarma<-MTS2pM(M)
print(pMvarma,style="broad",digits=3)
pMvarma
print(pMvarma,"matrix",digits=3)

# clean up
# rm(yt, M, pMvarma)

polyMatrix

Infrastructure for Manipulation Polynomial Matrices

v0.3.1
MIT + file LICENSE
Authors
Tamas Prohle [aut], Peter Prohle [aut], Nikolai Ryzhkov [aut, cre], Ildiko Laszlo [aut] (<https://orcid.org/0000-0003-2324-8183>), Ulas Onat Alakent [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.