Vector Moving Average Model (Cpp)
Performs VMA estimation using the conditional multivariate Gaussian likelihood function. This is the same function as VMA, with the likelihood function implemented in C++ for efficiency.
VMACpp(da, q = 1, include.mean = T, fixed = NULL, beta=NULL, sebeta=NULL, prelim = F, details = F, thres = 2)
da
: Data matrix of a k-dimensional VMA process with each column containing one time seriesq
: The order of VMA modelinclude.mean
: A logical switch to include the mean vector. The default is to include the mean vector in estimation.fixed
: A logical matrix used to fix parameter to zerobeta
: Parameter estimates for use in model simplificationsebeta
: Standard errors of parameter estimates for use in model simplificationprelim
: A logical switch to select parameters to be included in estimationdetails
: A logical switch to control the amount of outputthres
: Threshold for t-ratio used to fix parameter to zero. Default is 2.data: The data of the observed time series
MAorder: The VMA order
cnst: A logical switch to include the mean vector
coef: Parameter estimates
secoef: Standard errors of the parameter estimates
residuals: Residual series
Sigma: Residual covariance matrix
Theta: The VAR coefficient matrix
mu: The constant vector
aic,bic: The information criteria of the fitted model
Tsay (2014, Chapter 3).
Ruey S. Tsay
VMA
theta=matrix(c(0.5,0.4,0,0.6),2,2); sigma=diag(2) m1=VARMAsim(200,malags=c(1),theta=theta,sigma=sigma) zt=m1$series m2=VMACpp(zt,q=1,include.mean=FALSE)
Useful links