Learn R Programming

mgm

The package includes functions to estimate, visualize and resample time-varying k-order Mixed Graphical Models (MGMs) and mixed Vector Autoregressive (mVAR) models.

Here is a paper describing the package: https://arxiv.org/abs/1510.06871

And here are a couple of blog posts about some functions: https://jmbh.github.io/

The developmental version can be installed from within R using the devtools-package:

library(devtools) install_github("jmbh/mgm")

Copy Link

Version

Install

install.packages('mgm')

Monthly Downloads

2,393

Version

1.2-14

License

GPL (>= 2)

Maintainer

Last Published

September 5th, 2023

Functions in mgm (1.2-14)

mgm-internal

Internal mgm functions
mgm

Estimating Mixed Graphical Models
condition

Computes mgm object conditional on a set of variables
FactorGraph

Draws a factor graph of a (time-varying) MGM
mvar

Estimating mixed Vector Autoregressive Model (mVAR)
mvarsampler

Sampling from a mixed VAR model
mgm-package

Estimating Time-Varying k-order Mixed Graphical Models
datasets

Example Datasets in the mgm Package
bwSelect

Select optimal bandwidth for time-varying MGMs and mVAR Models
mgmsampler

Sample from k-order Mixed Graphical Model
print.mgm

Print method for mgm objects
tvmgmsampler

Sample from time-varying k-order Mixed Graphical Model
resample

Resampling scheme for mgm objects
tvmgm

Estimating time-varying Mixed Graphical Models
print.int

Print method for int objects
tvmvar

Estimating time-varying Mixed Vector Autoregressive Model (mVAR)
plotRes

Plot summary of resampled sampling distributions
tvmvarsampler

Sampling from a time-varying mixed VAR model
predict.mgm

Compute predictions from mgm model objects
showInteraction

Retrieving details of interactions