Package: gmvarkit 2.2.1

gmvarkit: Estimate Gaussian and Student's t Mixture Vector Autoregressive Models

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 (2025) <doi:10.1080/07350015.2024.2322090>, Savi Virolainen (in press) <doi:10.1016/j.ecosta.2025.09.003>.

Authors:Savi Virolainen [aut, cre]

gmvarkit_2.2.1.tar.gz
gmvarkit_2.2.1.zip(r-4.7)gmvarkit_2.2.1.zip(r-4.6)gmvarkit_2.2.1.zip(r-4.5)
gmvarkit_2.2.1.tgz(r-4.6-any)gmvarkit_2.2.1.tgz(r-4.5-any)
gmvarkit_2.2.1.tar.gz(r-4.7-any)gmvarkit_2.2.1.tar.gz(r-4.6-any)
gmvarkit_2.2.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
gmvarkit/json (API)
NEWS

# Install 'gmvarkit' in R:
install.packages('gmvarkit', repos = c('https://saviviro.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/saviviro/gmvarkit/issues

Datasets:
  • euromone - Euro area macroeconomic data used in Virolainen
  • gdpdef - U.S. real GDP percent change and GDP implicit price deflator percent change.
  • usamon - U.S. macroeconomic data used in Virolainen
  • usamone - U.S. macroeconomic data

On CRAN:

Conda:

5.07 score 3 stars 39 scripts 329 downloads 44 exports 9 dependencies

Last updated from:4fb4a8ee1a. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK376
source / vignettesOK210
linux-release-x86_64OK419
macos-release-arm64OK180
macos-oldrel-arm64OK204
windows-develOK269
windows-releaseOK221
windows-oldrelOK235
wasm-releaseOK121

Exports:add_dataalt_gsmvarcalc_gradientcalc_hessiancheck_parameterscond_moment_plotcond_momentsdiag_Omegasdiagnostic_plotestimate_sgsmvarfitGSMVARGAfitget_boldA_eigensget_focget_gradientget_hessianget_omega_eigensget_regime_autocovsget_regime_meansget_socGFEVDGIRFgmvar_to_gsmvarGSMVARgsmvar_to_sgsmvarin_paramspaceiterate_morelinear_IRFloglikelihoodLR_testPearson_residualsprint_std_errorsprofile_logliksquantile_residual_testsquantile_residualsRao_testredecompose_Omegasreorder_W_columnsstmvar_to_gstmvarswap_parametrizationswap_W_signsuncond_momentsupdate_numtolsWald_test

Dependencies:BHBrobdingnaggsllatticeMatrixmvnfastpbapplyRcppRcppArmadillo

gmvarkit: A Family of Mixture Vector Autoregressive Models in R

Rendered fromgmvarkit-vignette.Rnwusingutils::Sweaveon Jun 03 2026.

Last update: 2025-10-06
Started: 2021-10-19

Readme and manuals

Help Manual

Help pageTopics
gmvarkit: Estimate Gaussian and Student's t Mixture Vector Autoregressive Modelsgmvarkit-package gmvarkit
Add data to an object of class 'gsmvar' defining a GMVAR, StMVAR, or G-StMVAR modeladd_data
Construct a GMVAR, StMVAR, or G-StMVAR model based on results from an arbitrary estimation round of 'fitGSMVAR'alt_gsmvar
Calculate gradient or Hessian matrixcalc_gradient calc_hessian get_foc get_gradient get_hessian get_soc
Check that the given parameter vector satisfies the model assumptionscheck_parameters
Conditional mean or variance plot for a GMVAR, StMVAR, or G-StMVAR modelcond_moment_plot
Compute conditional moments of a GMVAR, StMVAR, or G-StMVAR modelcond_moments
Simultaneously diagonalize two covariance matricesdiag_Omegas
Quantile residual diagnostic plot for a GMVAR, StMVAR, or G-StMVAR modeldiagnostic_plot
Maximum likelihood estimation of a structural GMVAR, StMVAR, or G-StMVAR model with preliminary estimatesestimate_sgsmvar
Euro area macroeconomic data used in Virolainen (in press)euromone
Two-phase maximum likelihood estimation of a GMVAR, StMVAR, or G-StMVAR modelfitGSMVAR
Genetic algorithm for preliminary estimation of a GMVAR, StMVAR, or G-StMVAR modelGAfit
U.S. real GDP percent change and GDP implicit price deflator percent change.gdpdef
Calculate absolute values of the eigenvalues of the "bold A" matrices containing the AR coefficientsget_boldA_eigens
Calculate the eigenvalues of the "Omega" error term covariance matricesget_omega_eigens
Calculate regimewise autocovariance matricesget_regime_autocovs
Calculate regime means mu_{m}get_regime_means
Estimate generalized forecast error variance decomposition for structural (and reduced form) GMVAR, StMVAR, and G-StMVAR models.GFEVD plot.gfevd print.gfevd
Estimate generalized impulse response function for structural (and reduced form) GMVAR, StMVAR, and G-StMVAR models.GIRF plot.girf print.girf
Makes the old class 'gmvar' objects compatible with the functions using class 'gsmvar' objectsgmvar_to_gsmvar
Create a class 'gsmvar' object defining a reduced form or structural GMVAR, StMVAR, or G-StMVAR modelGSMVAR logLik.gsmvar plot.gsmvar print.gsmvar residuals.gsmvar summary.gsmvar
Switch from two-regime reduced form GMVAR, StMVAR, or G-StMVAR model to a structural model.gsmvar_to_sgsmvar
Determine whether the parameter vector lies in the parameter spacein_paramspace
Determine whether the parameter vector lies in the parameter spacein_paramspace_int
Maximum likelihood estimation of a GMVAR, StMVAR, or G-StMVAR model with preliminary estimatesiterate_more
Estimate linear impulse response function based on a single regime of a structural GMVAR, StMVAR, or G-StMVAR model.linear_IRF plot.irf print.irf
Compute log-likelihood of a GMVAR, StMVAR, or G-StMVAR model using parameter vectorloglikelihood
Perform likelihood ratio test for a GMVAR, StMVAR, or G-StMVAR modelLR_test
Calculate multivariate Pearson residuals of a GMVAR, StMVAR, or G-StMVAR modelPearson_residuals
plot method for class 'gsmvarpred' objectsplot.gsmvarpred
Quantile residual testsplot.qrtest print.qrtest quantile_residual_tests
Predict method for class 'gsmvar' objectspredict.gsmvar
Print standard errors of a GMVAR, StMVAR, or G-StMVAR model in the same form as the model estimates are printedprint_std_errors
Print method for class 'gsmvarpred' objectsprint.gsmvarpred
Summary print method from objects of class 'gsmvarsum'print.gsmvarsum
Print method for the class hypotestprint.hypotest
Plot profile log-likehoods around the estimatesprofile_logliks
Calculate multivariate quantile residuals of a GMVAR, StMVAR, or G-StMVAR modelquantile_residuals
Create somewhat random parameter vector of a GMVAR, StMVAR, or G-StMVAR model that is always stationaryrandom_ind2
Perform Rao's score test for a GSMVAR modelRao_test
In the decomposition of the covariance matrices (Muirhead, 1982, Theorem A9.9), change the order of the covariance matrices.redecompose_Omegas
Reorder columns of the W-matrix and lambda parameters of a structural GMVAR, StMVAR, or G-StMVAR model.reorder_W_columns
Simulate method for class 'gsmvar' objectssimulate.gsmvar
Estimate a G-StMVAR model based on a StMVAR model that has large degrees of freedom parametersstmvar_to_gstmvar
Swap the parametrization of a GMVAR, StMVAR, or G-StMVAR modelswap_parametrization
Swap all signs in pointed columns a the W matrix of a structural GMVAR, StMVAR, or G-StMVAR model.swap_W_signs
Calculate the unconditional mean, variance, the first p autocovariances, and the first p autocorrelations of a GMVAR, StMVAR, or G-StMVAR processuncond_moments
Update the stationarity and positive definiteness numerical tolerances of an existing class 'gsmvar' model.update_numtols
U.S. macroeconomic data used in Virolainen (2025)usamon
U.S. macroeconomic datausamone
Perform Wald test for a GMVAR, StMVAR, or G-StMVAR modelWald_test