gmvarkit2.1.2 package

Estimate Gaussian and Student's t Mixture Vector Autoregressive Models

add_data

Add data to an object of class 'gsmvar' defining a GMVAR, StMVAR, or G...

all_pos_ints

Check whether all arguments are positive integers

alt_gmvar

DEPRECATED! USE THE FUNCTION alt_gsmvar INSTEAD! Construct a GMVAR mod...

alt_gsmvar

Construct a GMVAR, StMVAR, or G-StMVAR model based on results from an ...

calc_gradient

Calculate gradient or Hessian matrix

change_parametrization

Change parametrization of a parameter vector

change_regime

Change regime parameters upsilon_{m} =(ϕm,0, = (\phi_{m,0},phi_{m} $,\sigma...

check_constraints

Check the constraint matrix has the correct form

check_data

Check the data is in the correct form

check_gsmvar

Checks whether the given object has class attribute 'gsmvar'

check_null_data

Checks whether the given object contains data

check_parameters

Check that the given parameter vector satisfies the model assumptions

check_pMd

Check that p, M, and d are correctly set

check_same_means

Check whether the parametrization is correct for usage of same means r...

cond_moment_plot

Conditional mean or variance plot for a GMVAR, StMVAR, or G-StMVAR mod...

cond_moments

Compute conditional moments of a GMVAR, StMVAR, or G-StMVAR model

create_J_matrix

Create a special matrix J

diag_Omegas

Simultaneously diagonalize two covariance matrices

diagnostic_plot

Quantile residual diagnostic plot for a GMVAR, StMVAR, or G-StMVAR mod...

dlogmultinorm

Calculate logarithms of multiple multivariate normal densities with va...

dlogmultistudent

Calculate logarithms of multiple multivariate Student's t densities wi...

estimate_sgsmvar

Maximum likelihood estimation of a structural GMVAR, StMVAR, or G-StMV...

fitGMVAR

DEPRECATED! USE THE FUNCTION fitGSMVAR INSTEAD! Two-phase maximum like...

fitGSMVAR

Two-phase maximum likelihood estimation of a GMVAR, StMVAR, or G-StMVA...

form_boldA

Form the ((dp)x(dp))((dp)x(dp)) "bold A" matrices related to the VAR processes

format_valuef

Function factory for value formatting

GAfit

Genetic algorithm for preliminary estimation of a GMVAR, StMVAR, or G-...

get_alpha_mt

Get mixing weights alpha_mt (this function is for internal use)

get_boldA_eigens

Calculate absolute values of the eigenvalues of the "bold A" matrices ...

get_IC

Calculate AIC, HQIC, and BIC

get_minval

Returns the default smallest allowed log-likelihood for given data.

get_omega_eigens

Calculate the eigenvalues of the "Omega" error term covariance matrice...

get_regime_autocovs

Calculate regimewise autocovariance matrices

get_regime_autocovs_int

Calculate regimewise autocovariance matrices

get_regime_means

Calculate regime means μm\mu_{m}

get_regime_means_int

Calculate regime means μm\mu_{m}

get_Sigmas

Calculate the dp-dimensional covariance matrices Σm,p\Sigma_{m,p} in the...

get_symmetric_sqrt

Calculate symmetric square root matrix of a positive definite covarian...

get_test_Omega

Compute covariance matrix Omega used in quantile residual tests

get_unconstrained_structural_pars

Get structural parameters that indicate there are no constraints

get_varying_h

Get differences 'h' which are adjusted for overly large degrees of fre...

GFEVD

Estimate generalized forecast error variance decomposition for structu...

GIRF

Estimate generalized impulse response function for structural (and red...

GMVAR

DEPRECATED! USE THE FUNCTION GSMVAR INSTEAD! Create a class 'gsmvar' o...

gmvar_to_gsmvar

Makes class 'gmvar' objects compatible with the functions using class ...

gmvar_to_sgmvar

DEPRECATED! USE THE FUNCTION fitGSMVAR INSTEAD! Switch from two-regime...

gmvarkit-package

gmvarkit: Estimate Gaussian and Student's t Mixture Vector Autoregress...

GSMVAR

Create a class 'gsmvar' object defining a reduced form or structural G...

gsmvar_to_sgsmvar

Switch from two-regime reduced form GMVAR, StMVAR, or G-StMVAR model t...

in_paramspace

Determine whether the parameter vector lies in the parameter space

in_paramspace_int

Determine whether the parameter vector lies in the parameter space

is_stationary

Check the stationary condition of a given GMVAR, StMVAR, or G-StMVAR m...

iterate_more

Maximum likelihood estimation of a GMVAR, StMVAR, or G-StMVAR model wi...

linear_IRF

Estimate linear impulse response function based on a single regime of ...

loglikelihood

Compute log-likelihood of a GMVAR, StMVAR, or G-StMVAR model using par...

loglikelihood_int

Compute log-likelihood of a GMVAR, StMVAR, and G-StMVAR models

LR_test

Perform likelihood ratio test for a GMVAR, StMVAR, or G-StMVAR model

mat_power

Compute the j:th power of a square matrix A

n_params

Calculate the number of parameters in a GMVAR, StMVAR, or G-StMVAR mod...

Pearson_residuals

Calculate multivariate Pearson residuals of a GMVAR, StMVAR, or G-StMV...

pick_all_phi0_A

Pick all ϕm,0\phi_{m,0} or μm\mu_{m} and Am,1,...,Am,pA_{m,1},...,A_{m,p} parameter...

pick_allA

Pick coefficient all matrices

pick_alphas

Pick mixing weight parameters αm,m=1,...,M\alpha_{m}, m=1,...,M

pick_Am

Pick coefficient matrices

pick_Ami

Pick coefficient matrix

pick_df

Pick the degrees of freedom parameters nu =(νM1+1,...,νM)=(\nu_{M1+1},...,\nu_{M})

pick_lambdas

Pick the structural parameters eigenvalue 'lambdas'

pick_Omegas

Pick covariance matrices

pick_phi0

Pick ϕm,0\phi_{m,0} or μm\mu_{m}, m=1,..,M vectors

pick_regime

Pick regime parameters upsilon_{m} =(ϕm,0, = (\phi_{m,0},phi_{m} $,\sigma_{...

pick_W

Pick the structural parameter matrix W

plot.gmvarpred

plot method for class 'gmvarpred' objects

plot.gsmvarpred

plot method for class 'gsmvarpred' objects

predict.gmvar

DEPRECATED! USE THE FUNCTION predict.gsmvar INSTEAD! Predict method fo...

predict.gsmvar

Predict method for class 'gsmvar' objects

print.gmvar

Deprecated S3 methods for the deprecated class 'gmvar'

print.gmvarsum

Summary print method from objects of class 'gmvarsum'

print.gsmvarpred

Print method for class 'gsmvarpred' objects

print.gsmvarsum

Summary print method from objects of class 'gsmvarsum'

print.hypotest

Print method for the class hypotest

print_std_errors

Print standard errors of a GMVAR, StMVAR, or G-StMVAR model in the sam...

profile_logliks

Plot profile log-likehoods around the estimates

quantile_residual_tests

Quantile residual tests

quantile_residuals

Calculate multivariate quantile residuals of a GMVAR, StMVAR, or G-StM...

quantile_residuals_int

Calculate multivariate quantile residuals of GMVAR, StMVAR, or G-StMVA...

random_coefmats

Create random VAR-model (dxd)(dxd) coefficient matrices AA.

random_coefmats2

Create random stationary VAR model (dxd)(dxd) coefficient matrices AA.

random_covmat

Create random VAR model error term covariance matrix

random_df

Create random degrees of freedom parameter values

random_ind

Create random mean-parametrized parameter vector of a GMVAR, StMVAR, o...

random_ind2

Create somewhat random parameter vector of a GMVAR, StMVAR, or G-StMVA...

Rao_test

Perform Rao's score test for a GSMVAR model

redecompose_Omegas

In the decomposition of the covariance matrices (Muirhead, 1982, Theor...

reform_constrained_pars

Reform constrained parameter vector into the "standard" form

reform_data

Reform data

reform_structural_pars

Reform structural parameter vector into the "standard" form

regime_distance

Calculate "distance" between two (scaled) regimes upsilon_{m} $ = (\ph...

reorder_W_columns

Reorder columns of the W-matrix and lambda parameters of a structural ...

simulate.gsmvar

Simulate method for class 'gsmvar' objects

simulateGMVAR

DEPRECATED! USE THE FUNCTION simulate.gsmvar INSTEAD! Simulate from GM...

smart_covmat

Create random VAR-model (dxd)(dxd) error term covariance matrix Ω\Omegaf...

smart_df

Create random degrees of freedom parameter values close to given value...

smart_ind

Create random parameter vector of a GMVAR, StMVAR, or G-StMVAR model f...

sort_and_standardize_alphas

Sort mixing weight parameters in a decreasing order and standardize th...

sort_components

Sort components in parameter vector according to mixing weights into a...

sort_W_and_lambdas

Sort the columns of W matrix by sorting the lambda parameters of the s...

standard_errors

Calculate standard errors for estimates of a GMVAR, StMVAR, or G-StMVA...

stmvar_to_gstmvar

Estimate a G-StMVAR model based on a StMVAR model that has large degre...

stmvarpars_to_gstmvar

Transform a StMVAR (or G-StMVAR) model parameter vector to the corresp...

swap_parametrization

Swap the parametrization of a GMVAR, StMVAR, or G-StMVAR model

swap_W_signs

Swap all signs in pointed columns a the WW matrix of a structural GMV...

uncond_moments

Calculate the unconditional mean, variance, the first p autocovariance...

uncond_moments_int

Calculate the unconditional mean, variance, the first p autocovariance...

unvec

Reverse vectorization operator

unvech

Reverse operator of the parsimonious vectorization operator vech

unWvec

Reverse vectorization operator that restores zeros

update_numtols

Update the stationarity and positive definiteness numerical tolerances...

VAR_pcovmat

Calculate the dp-dimensional covariance matrix of p consecutive observ...

vec

Vectorization operator

vech

Parsimonious vectorization operator for symmetric matrices

Wald_test

Perform Wald test for a GMVAR, StMVAR, or G-StMVAR model

warn_df

Warn about large degrees of freedom parameter values

warn_eigens

Warn about near-unit-roots in some regimes

Wvec

Vectorization operator that removes zeros

Unconstrained and constrained maximum likelihood estimation of structural and reduced form Gaussian mixture vector autoregressive, Student's t mixture vector autoregressive, and Gaussian and Student's t mixture vector autoregressive models, quantile residual tests, graphical diagnostics, simulations, forecasting, and estimation of generalized impulse response function and generalized forecast error variance decomposition. Leena Kalliovirta, Mika Meitz, Pentti Saikkonen (2016) <doi:10.1016/j.jeconom.2016.02.012>, Savi Virolainen (forthcoming) <doi:10.1080/07350015.2024.2322090>, Savi Virolainen (2022) <arXiv:2109.13648>.

  • Maintainer: Savi Virolainen
  • License: GPL-3
  • Last published: 2024-02-29