Package: uGMAR 3.5.1

Savi Virolainen

uGMAR: Estimate Univariate Gaussian and Student's t Mixture Autoregressive Models

Maximum likelihood estimation of univariate Gaussian Mixture Autoregressive (GMAR), Student's t Mixture Autoregressive (StMAR), and Gaussian and Student's t Mixture Autoregressive (G-StMAR) models, quantile residual tests, graphical diagnostics, forecast and simulate from GMAR, StMAR and G-StMAR processes. Leena Kalliovirta, Mika Meitz, Pentti Saikkonen (2015) <doi:10.1111/jtsa.12108>, Mika Meitz, Daniel Preve, Pentti Saikkonen (2023) <doi:10.1080/03610926.2021.1916531>, Savi Virolainen (2022) <doi:10.1515/snde-2020-0060>.

Authors:Savi Virolainen [aut, cre]

uGMAR_3.5.1.tar.gz
uGMAR_3.5.1.tar.gz(r-4.5-noble)uGMAR_3.5.1.tar.gz(r-4.4-noble)
uGMAR_3.5.1.tgz(r-4.4-emscripten)uGMAR_3.5.1.tgz(r-4.3-emscripten)
uGMAR.pdf |uGMAR.html
uGMAR/json (API)
NEWS

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

Peer review:

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

Datasets:
  • M10Y1Y - Spread between 10-Year and 1-Year Treasury rates: M10Y1Y
  • T10Y1Y - Spread between 10-Year and 1-Year Treasury rates: T10Y1Y
  • TBFF - Spread between the 3-month Treasury bill rate and the effective federal funds rate: TBFF
  • simudata - Simulated data

3.71 score 51 scripts 466 downloads 45 exports 5 dependencies

Last updated 22 days agofrom:c27e7d303c. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKDec 04 2024
R-4.5-linuxOKDec 04 2024

Exports:add_dataalt_gsmarcalc_gradientcalc_hessiancond_moment_plotcond_momentscondmomentPlotcondMomentsdiagnostic_plotdiagnosticPlotfitGSMARGAfitget_ar_rootsget_focget_gradientget_hessianget_regime_autocovsget_regime_meansget_regime_varsget_socGSMARis_stationaryisStationaryiterate_moreloglikelihoodLR_testmixing_weightsmixingWeightsprofile_logliksquantile_residual_plotquantile_residual_testsquantile_residualsquantileResidualPlotquantileResidualsquantileResidualTestsrandom_indrandomIndividualsimulateGSMARsmart_indsmartIndividualstmar_to_gstmarstmarpars_to_gstmarswap_parametrizationuncond_momentsWald_test

Dependencies:BrobdingnaggsllatticeMatrixpbapply

uGMAR: A Family of Mixture Autoregressive Models in R

Rendered fromuGMARpaper.Rnwusingutils::Sweaveon Dec 04 2024.

Last update: 2024-12-04
Started: 2021-05-12

Readme and manuals

Help Manual

Help pageTopics
uGMAR: Estimate Univariate Gaussian and Student's t Mixture Autoregressive ModelsuGMAR-package uGMAR
Add data to object of class 'gsmar' defining a GMAR, StMAR, or G-StMAR modeladd_data
Construct a GSMAR model based on results from an arbitrary estimation round of 'fitGSMAR'alt_gsmar
Calculate gradient or Hessian matrixcalc_gradient calc_hessian get_foc get_gradient get_hessian get_soc
Conditional mean or variance plot for GMAR, StMAR, and G-StMAR modelscond_moment_plot
Calculate conditional moments of GMAR, StMAR, or G-StMAR modelcond_moments
DEPRECATED, USE 'cond_moment_plot' INSTEAD! Conditional mean or variance plot for GMAR, StMAR, and G-StMAR modelscondmomentPlot
DEPRECATED, USE 'cond_moments' INSTEAD! Calculate conditional moments of GMAR, StMAR, or G-StMAR modelcondMoments
Quantile residual based diagnostic plots for GMAR, StMAR, and G-StMAR modelsdiagnostic_plot
DEPRECATED, USE 'diagnostic_plot' INSTEAD! Quantile residual based diagnostic plots for GMAR, StMAR, and G-StMAR modelsdiagnosticPlot
Estimate Gaussian or Student's t Mixture Autoregressive modelfitGSMAR
Genetic algorithm for preliminary estimation of GMAR, StMAR, or G-StMAR modelGAfit
Calculate absolute values of the roots of the AR characteristic polynomialsget_ar_roots
Calculate regime specific autocovariances *gamma*_{m,p}get_regime_autocovs
Calculate regime specific means mu_{m}get_regime_means
Calculate regime specific variances gamma_{m,0}get_regime_vars
Create object of class 'gsmar' defining a GMAR, StMAR, or G-StMAR modelGSMAR logLik.gsmar plot.gsmar print.gsmar residuals.gsmar summary.gsmar
Check the stationary condition of specified GMAR, StMAR, or G-StMAR model.is_stationary
DEPRECATED, USE 'is_stationary' INSTEAD! Check the stationary condition of specified GMAR, StMAR, or G-StMAR model.isStationary
Maximum likelihood estimation of GMAR, StMAR, or G-StMAR model with preliminary estimatesiterate_more
Compute the log-likelihood of GMAR, StMAR, or G-StMAR modelloglikelihood
Perform likelihood ratio testLR_test
Spread between 10-Year and 1-Year Treasury rates: M10Y1YM10Y1Y
Calculate mixing weights of GMAR, StMAR or G-StMAR modelmixing_weights
DEPRECATED, USE 'mixing_weights' INSTEAD! Calculate mixing weights of GMAR, StMAR or G-StMAR modelmixingWeights
Pick phi_0 (or mu), AR-coefficients, and variance parameters from a parameter vectorpick_pars
Plot method for class 'gsmarpred' objectsplot.gsmarpred
Quantile residual tests for GMAR, StMAR , and G-StMAR modelsplot.qrtest print.qrtest quantile_residual_tests
Forecast GMAR, StMAR, or G-StMAR processpredict.gsmar
Print method for class 'gsmarpred' objectsprint.gsmarpred
Print method from objects of class 'gsmarsum'print.gsmarsum
Plot profile log-likelihoods around the estimatesprofile_logliks
Plot quantile residual time series and histogramquantile_residual_plot
Compute quantile residuals of GMAR, StMAR, or G-StMAR modelquantile_residuals
DEPRECATED, USE 'quantile_residual_plot' INSTEAD! Plot quantile residual time series and histogramquantileResidualPlot
DEPRECATED, USE 'quantile_residuals' INSTEAD! Compute quantile residuals of GMAR, StMAR, or G-StMAR modelquantileResiduals
DEPRECATED, USE 'quantile_residual_tests' INSTEAD! Quantile residual tests for GMAR, StMAR , and G-StMAR modelsquantileResidualTests
Create random GMAR, StMAR, or G-StMAR model compatible parameter vectorrandom_ind smart_ind
DEPRECATED, USE 'random_ind' OR 'smart_ind' INSTEAD! Create random GMAR, StMAR, or G-StMAR model compatible parameter vectorrandomIndividual smartIndividual
Reform any parameter vector into standard form.reform_parameters
Simulated datasimudata
Simulate obsercations from GMAR, StMAR, and G-StMAR processessimulate.gsmar
DEPRECATED, USE 'simulate.gsmar' INSTEAD! Simulate observations from GMAR, StMAR, and G-StMAR processessimulateGSMAR
Estimate a G-StMAR model based on a StMAR model with large degrees of freedom parametersstmar_to_gstmar
Transform a StMAR or G-StMAR model parameter vector to a corresponding G-StMAR model parameter vector with large dfs parameters reduced.stmarpars_to_gstmar
Swap the parametrization of object of class 'gsmar' defining a GMAR, StMAR, or G-StMAR modelswap_parametrization
Spread between 10-Year and 1-Year Treasury rates: T10Y1YT10Y1Y
Spread between the 3-month Treasury bill rate and the effective federal funds rate: TBFFTBFF
Calculate unconditional mean, variance, first p autocovariances and autocorrelations of the GSMAR process.uncond_moments
Perform Wald testWald_test