getOmega
generates the covariance matrix Omega used in the quantile residual tests.
getOmega(data, p, M, params, model = c("GMAR", "StMAR", "G-StMAR"),
restricted = FALSE, constraints = NULL,
parametrization = c("intercept", "mean"), g, dim_g)
a numeric vector class 'ts'
object containing the data. NA
values are not supported.
a positive integer specifying the order of AR coefficients.
a positive integer specifying the number of mixture components.
a size (2x1) vector specifying the number of GMAR-type components M1
in the
first element and StMAR-type components M2
in the second. The total number of mixture components is M=M1+M2
.
a real valued parameter vector specifying the model.
Size
Size
Size
Replace the vectors
Size
Size
Size
Replace the vector
Symbol parametrization=="mean"
just replace each intercept term M1
components are GMAR-type
and the rest M2
components are StMAR-type.
Note that in the case M=1 the parameter
is "GMAR", "StMAR" or "G-StMAR" model considered? In G-StMAR model the first M1
components
are GMAR-type and the rest M2
components are StMAR-type.
a logical argument stating whether the AR coefficients
specifies linear constraints applied to the autoregressive parameters.
a list of size
a size
Symbol p
for all regimes.
Ignore or set to NULL
if applying linear constraints is not desired.
is the model parametrized with the "intercepts"
a function specifying the transformation.
output dimension of the transformation g
.
Returns size (dim_g
xdim_g
) covariance matrix Omega.
This function is used for quantile residuals tests in quantileResidualTests
.
Galbraith, R., Galbraith, J. 1974. On the inverses of some patterned matrices arising in the theory of stationary time series. Journal of Applied Probability 11, 63-71.
Kalliovirta L. (2012) Misspecification tests based on quantile residuals. The Econometrics Journal, 15, 358-393.
Kalliovirta L., Meitz M. and Saikkonen P. 2015. Gaussian Mixture Autoregressive model for univariate time series. Journal of Time Series Analysis, 36, 247-266.
Meitz M., Preve D., Saikkonen P. 2018. A mixture autoregressive model based on Student's t-distribution. arXiv:1805.04010 [econ.EM].
There are currently no published references for G-StMAR model, but it's a straight forward generalization with theoretical properties similar to GMAR and StMAR models.