{
  "_id": "6a228898cd65a98ecbd539a2",
  "Package": "mgm",
  "Type": "Package",
  "Title": "Estimating Time-Varying k-Order Mixed Graphical Models",
  "Version": "1.2-16",
  "Date": "2023-09-04",
  "Author": "Jonas Haslbeck",
  "Maintainer": "Jonas Haslbeck <jonashaslbeck@gmail.com>",
  "Description": "Estimation of k-Order time-varying Mixed Graphical Models\nand mixed VAR(p) models via elastic-net regularized\nneighborhood regression. For details see Haslbeck & Waldorp\n(2020) <doi:10.18637/jss.v093.i08>.",
  "URL": "https://www.jstatsoft.org/article/view/v093i08",
  "BugReports": "https://github.com/jmbh/mgm/issues",
  "License": "GPL (>= 2)",
  "LazyData": "true",
  "Packaged": {
    "Date": "2026-06-05 08:20:48 UTC",
    "User": "root"
  },
  "Config/testthat/edition": "2",
  "Config/pak/sysreqs": "cmake libglpk-dev make libicu-dev libjpeg-dev\nlibpng-dev libuv1-dev libxml2-dev",
  "Repository": "https://jmbh.r-universe.dev",
  "Date/Publication": "2025-03-11 14:30:29 UTC",
  "RemoteUrl": "https://github.com/jmbh/mgm",
  "RemoteRef": "HEAD",
  "RemoteSha": "22f9110136943c161be08f7f84353a76f5ac259d",
  "NeedsCompilation": "no",
  "MD5sum": "c6560c4ef54574f225c78d5979bbfff2",
  "_user": "jmbh",
  "_type": "src",
  "_file": "mgm_1.2-16.tar.gz",
  "_fileid": "9cbc8522f2b4e3c14547c0d480562f983c9fb4e69d6563dd2a381aaf8a1aa203",
  "_filesize": 897597,
  "_sha256": "9cbc8522f2b4e3c14547c0d480562f983c9fb4e69d6563dd2a381aaf8a1aa203",
  "_created": "2026-06-05T08:20:48.000Z",
  "_published": "2026-06-05T08:28:08.839Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79690954406,
      "time": 376,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7432164029"
    },
    {
      "job": 79690954451,
      "time": 195,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7432107721"
    },
    {
      "job": 79690954431,
      "time": 114,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7432083082"
    },
    {
      "job": 79690954450,
      "time": 146,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7432092425"
    },
    {
      "job": 79690412768,
      "time": 215,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7432047355"
    },
    {
      "job": 79690954462,
      "time": 127,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7432086890"
    },
    {
      "job": 79690954477,
      "time": 152,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7432094461"
    },
    {
      "job": 79690954457,
      "time": 198,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7432094667"
    },
    {
      "job": 79690954465,
      "time": 148,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7432092936"
    }
  ],
  "_buildurl": "https://github.com/r-universe/jmbh/actions/runs/27003820647",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/jmbh/mgm",
  "_commit": {
    "id": "22f9110136943c161be08f7f84353a76f5ac259d",
    "author": "jmbh <jonashaslbeck@gmail.com>",
    "committer": "jmbh <jonashaslbeck@gmail.com>",
    "message": "Smaller changes + trying to addressnew grepl() error on CRAN on windows/unix machines\n",
    "time": 1741703429
  },
  "_maintainer": {
    "name": "Jonas Haslbeck",
    "email": "jonashaslbeck@gmail.com",
    "login": "jmbh",
    "description": "",
    "uuid": 8234804
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "glmnet",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "Hmisc",
      "role": "Imports"
    },
    {
      "package": "qgraph",
      "role": "Imports"
    },
    {
      "package": "gtools",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 2.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "jmbh",
  "_selfowned": true,
  "_usedby": 7,
  "_updates": [],
  "_tags": [],
  "_stars": 29,
  "_contributors": [
    {
      "user": "jmbh",
      "count": 233,
      "uuid": 8234804
    },
    {
      "user": "gavinsimpson",
      "count": 1,
      "uuid": 514696
    }
  ],
  "_userbio": {
    "uuid": 8234804,
    "type": "user",
    "name": "jmbh"
  },
  "_downloads": {
    "count": 3216,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mgm"
  },
  "_mentions": 29,
  "_devurl": "https://github.com/jmbh/mgm",
  "_searchresults": 166,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/mgm.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/jmbh/mgm",
  "_realowner": "jmbh",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.1-2",
      "date": "2015-09-03"
    },
    {
      "version": "1.1-3",
      "date": "2016-01-06"
    },
    {
      "version": "1.1-4",
      "date": "2016-01-07"
    },
    {
      "version": "1.1-5",
      "date": "2016-04-23"
    },
    {
      "version": "1.1-6",
      "date": "2016-06-15"
    },
    {
      "version": "1.1-7",
      "date": "2016-10-20"
    },
    {
      "version": "1.2-0",
      "date": "2017-05-26"
    },
    {
      "version": "1.2-1",
      "date": "2017-06-20"
    },
    {
      "version": "1.2-2",
      "date": "2017-11-23"
    },
    {
      "version": "1.2-3",
      "date": "2018-06-05"
    },
    {
      "version": "1.2-4",
      "date": "2018-07-07"
    },
    {
      "version": "1.2-5",
      "date": "2019-01-07"
    },
    {
      "version": "1.2-6",
      "date": "2019-03-14"
    },
    {
      "version": "1.2-7",
      "date": "2019-09-05"
    },
    {
      "version": "1.2-9",
      "date": "2020-04-20"
    },
    {
      "version": "1.2-10",
      "date": "2020-06-27"
    },
    {
      "version": "1.2-11",
      "date": "2021-02-02"
    },
    {
      "version": "1.2-12",
      "date": "2021-06-03"
    },
    {
      "version": "1.2-13",
      "date": "2022-07-07"
    },
    {
      "version": "1.2-14",
      "date": "2023-09-05"
    },
    {
      "version": "1.2-15",
      "date": "2025-03-16"
    }
  ],
  "_exports": [
    "bwSelect",
    "condition",
    "FactorGraph",
    "mgm",
    "mgmfit",
    "mgmsampler",
    "mvar",
    "mvarsampler",
    "plotRes",
    "resample",
    "showInteraction",
    "tv_var.mgm",
    "tv.mgmfit",
    "tvmgm",
    "tvmgmsampler",
    "tvmvar",
    "tvmvarsampler",
    "var.mgm"
  ],
  "_datasets": [
    {
      "name": "autism_data",
      "title": "Example Datasets in the mgm Package",
      "object": "autism_data",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "autism_data_large",
      "title": "Example Datasets in the mgm Package",
      "object": "autism_data_large",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "B5MS",
      "title": "Example Datasets in the mgm Package",
      "object": "B5MS",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "O",
        "N",
        "A",
        "C",
        "E"
      ],
      "rows": 500,
      "table": true,
      "tojson": true
    },
    {
      "name": "dataGD",
      "title": "Example Datasets in the mgm Package",
      "object": "dataGD",
      "class": [
        "matrix",
        "array"
      ],
      "fields": [
        "x1",
        "x2",
        "x3",
        "x4",
        "x5",
        "x6",
        "x7"
      ],
      "rows": 3000,
      "table": true,
      "tojson": true
    },
    {
      "name": "Fried2015",
      "title": "Example Datasets in the mgm Package",
      "object": "Fried2015",
      "class": [
        "list"
      ],
      "fields": [],
      "table": true,
      "tojson": true
    },
    {
      "name": "fruitfly_data",
      "title": "Example Datasets in the mgm Package",
      "object": "fruitfly_data",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "mgm_data",
      "title": "Example Datasets in the mgm Package",
      "object": "mgm_data",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "modnw",
      "title": "Example Datasets in the mgm Package",
      "object": "modnw",
      "class": [
        "matrix",
        "array"
      ],
      "fields": {},
      "rows": 858,
      "table": true,
      "tojson": true
    },
    {
      "name": "msq_p3",
      "title": "Example Datasets in the mgm Package",
      "object": "msq_p3",
      "class": [
        "data.frame"
      ],
      "fields": [
        "afraid",
        "ashamed",
        "distressed"
      ],
      "rows": 3896,
      "table": true,
      "tojson": true
    },
    {
      "name": "msq_p5",
      "title": "Example Datasets in the mgm Package",
      "object": "msq_p5",
      "class": [
        "data.frame"
      ],
      "fields": [
        "hostile",
        "lonely",
        "nervous",
        "sleepy",
        "depressed"
      ],
      "rows": 3896,
      "table": true,
      "tojson": true
    },
    {
      "name": "mvar_data",
      "title": "Example Datasets in the mgm Package",
      "object": "mvar_data",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "PTSD_data",
      "title": "Example Datasets in the mgm Package",
      "object": "PTSD_data",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "restingstate_data",
      "title": "Example Datasets in the mgm Package",
      "object": "restingstate_data",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "symptom_data",
      "title": "Example Datasets in the mgm Package",
      "object": "symptom_data",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "mgm-package",
      "title": "Estimating Time-Varying k-order Mixed Graphical Models",
      "topics": [
        "mgm-package"
      ]
    },
    {
      "page": "bwSelect",
      "title": "Select optimal bandwidth for time-varying MGMs and mVAR Models",
      "topics": [
        "bwSelect"
      ]
    },
    {
      "page": "condition",
      "title": "Computes mgm object conditional on a set of variables",
      "topics": [
        "condition"
      ]
    },
    {
      "page": "datasets",
      "title": "Example Datasets in the mgm Package",
      "topics": [
        "autism_data",
        "autism_data_large",
        "B5MS",
        "dataGD",
        "datasets",
        "Fried2015",
        "fruitfly_data",
        "mgm_data",
        "modnw",
        "msq_p3",
        "msq_p5",
        "mvar_data",
        "PTSD_data",
        "restingstate_data",
        "symptom_data"
      ]
    },
    {
      "page": "FactorGraph",
      "title": "Draws a factor graph of a (time-varying) MGM",
      "topics": [
        "FactorGraph"
      ]
    },
    {
      "page": "mgm",
      "title": "Estimating Mixed Graphical Models",
      "topics": [
        "mgm",
        "mgmfit"
      ]
    },
    {
      "page": "mgmsampler",
      "title": "Sample from k-order Mixed Graphical Model",
      "topics": [
        "mgmsampler"
      ]
    },
    {
      "page": "mvar",
      "title": "Estimating mixed Vector Autoregressive Model (mVAR)",
      "topics": [
        "mvar",
        "var.mgm"
      ]
    },
    {
      "page": "mvarsampler",
      "title": "Sampling from a mixed VAR model",
      "topics": [
        "mvarsampler"
      ]
    },
    {
      "page": "plotRes",
      "title": "Plot summary of resampled sampling distributions",
      "topics": [
        "plotRes"
      ]
    },
    {
      "page": "predict.mgm",
      "title": "Compute predictions from mgm model objects",
      "topics": [
        "predict.mgm"
      ]
    },
    {
      "page": "print.int",
      "title": "Print method for int objects",
      "topics": [
        "print.int"
      ]
    },
    {
      "page": "print.mgm",
      "title": "Print method for mgm objects",
      "topics": [
        "print.mgm"
      ]
    },
    {
      "page": "resample",
      "title": "Resampling scheme for mgm objects",
      "topics": [
        "resample"
      ]
    },
    {
      "page": "showInteraction",
      "title": "Retrieving details of interactions",
      "topics": [
        "showInteraction"
      ]
    },
    {
      "page": "tvmgm",
      "title": "Estimating time-varying Mixed Graphical Models",
      "topics": [
        "tv.mgmfit",
        "tvmgm"
      ]
    },
    {
      "page": "tvmgmsampler",
      "title": "Sample from time-varying k-order Mixed Graphical Model",
      "topics": [
        "tvmgmsampler"
      ]
    },
    {
      "page": "tvmvar",
      "title": "Estimating time-varying Mixed Vector Autoregressive Model (mVAR)",
      "topics": [
        "tvmvar",
        "tv_var.mgm"
      ]
    },
    {
      "page": "tvmvarsampler",
      "title": "Sampling from a time-varying mixed VAR model",
      "topics": [
        "tvmvarsampler"
      ]
    }
  ],
  "_readme": "https://github.com/jmbh/mgm/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "base64enc",
    "bslib",
    "cachem",
    "checkmate",
    "cli",
    "cluster",
    "codetools",
    "colorspace",
    "corpcor",
    "cpp11",
    "data.table",
    "digest",
    "evaluate",
    "farver",
    "fastmap",
    "fdrtool",
    "fontawesome",
    "foreach",
    "foreign",
    "Formula",
    "fs",
    "ggplot2",
    "glasso",
    "glmnet",
    "glue",
    "GPArotation",
    "gridExtra",
    "gtable",
    "gtools",
    "highr",
    "Hmisc",
    "htmlTable",
    "htmltools",
    "htmlwidgets",
    "igraph",
    "isoband",
    "iterators",
    "jpeg",
    "jquerylib",
    "jsonlite",
    "knitr",
    "labeling",
    "lattice",
    "lavaan",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "memoise",
    "mime",
    "mnormt",
    "nlme",
    "nnet",
    "numDeriv",
    "pbapply",
    "pbivnorm",
    "pkgconfig",
    "plyr",
    "png",
    "psych",
    "qgraph",
    "quadprog",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "reshape2",
    "rlang",
    "rmarkdown",
    "rpart",
    "rstudioapi",
    "S7",
    "sass",
    "scales",
    "shape",
    "stringi",
    "stringr",
    "survival",
    "tinytex",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "yaml"
  ],
  "_score": 8.211011425085363,
  "_indexed": true,
  "_nocasepkg": "mgm",
  "_universes": [
    "jmbh"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2-16",
      "date": "2026-06-05T08:24:20.000Z",
      "distro": "noble",
      "commit": "22f9110136943c161be08f7f84353a76f5ac259d",
      "fileid": "7b7a04cbd65dc0bd958303323e77ec3fdba34e36c6cdc222ba6afb742cde6327",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jmbh/actions/runs/27003820647"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2-16",
      "date": "2026-06-05T08:23:21.000Z",
      "distro": "noble",
      "commit": "22f9110136943c161be08f7f84353a76f5ac259d",
      "fileid": "7f3ca0b4c97c3e857f9cf3a98e8b9b87f99e4e2ef2c8cd5e002de9ab4aeca0f9",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jmbh/actions/runs/27003820647"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2-16",
      "date": "2026-06-05T08:22:27.000Z",
      "commit": "22f9110136943c161be08f7f84353a76f5ac259d",
      "fileid": "23519e7f7bf6963296bf3d6ac70ab8d24630813821ede4f77c017dd0c383db96",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jmbh/actions/runs/27003820647"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2-16",
      "date": "2026-06-05T08:22:43.000Z",
      "commit": "22f9110136943c161be08f7f84353a76f5ac259d",
      "fileid": "963674a19d06b9051ccd301991f82a2a69d8d9d1d39eb31f506f95cb803efa3a",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jmbh/actions/runs/27003820647"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2-16",
      "date": "2026-06-05T08:23:22.000Z",
      "commit": "22f9110136943c161be08f7f84353a76f5ac259d",
      "fileid": "00e88484e54d60e8f514eca12fb47b697d9812b509b1fc82a08fa37bab13c767",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jmbh/actions/runs/27003820647"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2-16",
      "date": "2026-06-05T08:22:23.000Z",
      "commit": "22f9110136943c161be08f7f84353a76f5ac259d",
      "fileid": "0b455c7d118923ca4bd333e27a6235fc1b08f4ad6e1e6ae267788de7e1fda1ef",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jmbh/actions/runs/27003820647"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2-16",
      "date": "2026-06-05T08:22:21.000Z",
      "commit": "22f9110136943c161be08f7f84353a76f5ac259d",
      "fileid": "e51399adc416ff105337b06e0b919efc2adaa69e74fb75eaf5213296c6ea7f93",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jmbh/actions/runs/27003820647"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.2-16",
      "date": "2026-06-05T08:22:23.000Z",
      "commit": "22f9110136943c161be08f7f84353a76f5ac259d",
      "fileid": "dbb8f222db8b76381a1bafa0422b668a6bbbc60bfd0f40aa404e0fd13ab15bdd",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jmbh/actions/runs/27003820647"
    }
  ]
}