{
  "_id": "6ad5ec947f75c4fbd3a1ef01",
  "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-10-19 10:06:28 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",
  "_user": "jmbh",
  "_type": "src",
  "_file": "mgm_1.2-16.tar.gz",
  "_fileid": "https://r2.ropensci.org/9fc95892db5b06f21a710f01dc6b188f26bad3732fdc00f7ce270023c9f9d882",
  "_filesize": 897814,
  "_sha256": "9fc95892db5b06f21a710f01dc6b188f26bad3732fdc00f7ce270023c9f9d882",
  "_expires": "2027-01-27T10:10:26.000Z",
  "_created": "2026-10-19T10:06:28.000Z",
  "_published": "2026-10-19T10:10:28.915Z",
  "_buildurl": "https://github.com/r-universe/jmbh/actions/runs/39234136587",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 118002116292,
      "time": 162,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "12179045643"
    },
    {
      "job": 118002116165,
      "time": 191,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12178726559"
    },
    {
      "job": 118002116240,
      "time": 158,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "12179815175"
    },
    {
      "job": 118002116331,
      "time": 176,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12179620133"
    },
    {
      "job": 117999156280,
      "time": 435,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12178621202"
    },
    {
      "job": 118002116354,
      "time": 119,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12177189592"
    },
    {
      "job": 118002116166,
      "time": 122,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "12179215296"
    },
    {
      "job": 118002116137,
      "time": 140,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "12179440361"
    },
    {
      "job": 118002116210,
      "time": 152,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12177074918"
    }
  ],
  "_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
  },
  "_distro": "resolute",
  "_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": 11,
  "_updates": [],
  "_tags": [],
  "_stars": 30,
  "_contributors": [
    {
      "user": "jmbh",
      "count": 233,
      "uuid": 8234804
    },
    {
      "user": "gavinsimpson",
      "count": 1,
      "uuid": 514696
    }
  ],
  "_userbio": {
    "uuid": 8234804,
    "type": "user",
    "name": "Jonas Haslbeck",
    "followers": 58
  },
  "_downloads": {
    "count": 3387,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mgm"
  },
  "_mentions": 29,
  "_devurl": "https://github.com/jmbh/mgm",
  "_searchresults": 188,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/mgm.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_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.49857824484188,
  "_indexed": true,
  "_nocasepkg": "mgm",
  "_universes": [
    "jmbh"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2-16",
      "date": "2026-10-19T10:08:40.000Z",
      "distro": "resolute",
      "commit": "22f9110136943c161be08f7f84353a76f5ac259d",
      "fileid": "https://r2.ropensci.org/5ebd6e8ae5f1b3bf458845057902a378e479168c56e620bbfdc771cae69ef4b4",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jmbh/actions/runs/39234136587"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.2-16",
      "date": "2026-10-19T10:08:51.000Z",
      "distro": "resolute",
      "commit": "22f9110136943c161be08f7f84353a76f5ac259d",
      "fileid": "https://r2.ropensci.org/91d7769461069ca04ba088d9b21d20715ac37ed9eeb98a58ff3b87ec2c80dfc1",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jmbh/actions/runs/39234136587"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2-16",
      "date": "2026-10-19T10:08:37.000Z",
      "commit": "22f9110136943c161be08f7f84353a76f5ac259d",
      "fileid": "https://r2.ropensci.org/df27a89805c2d5c8ede5a721eb81ec06e58458d76c8f1b06035a3108584ce0bc",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jmbh/actions/runs/39234136587"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.2-16",
      "date": "2026-10-19T10:08:49.000Z",
      "commit": "22f9110136943c161be08f7f84353a76f5ac259d",
      "fileid": "https://r2.ropensci.org/ad558928738411513f8200fded8758ade9b7d45288f7780e9ca361a4e629b9a6",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jmbh/actions/runs/39234136587"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2-16",
      "date": "2026-10-19T10:08:52.000Z",
      "commit": "22f9110136943c161be08f7f84353a76f5ac259d",
      "fileid": "https://r2.ropensci.org/2335a2e8b6f7f0cf13c4ecde55d10e8ffbccbdd9130ac611e5df5edd83d563fe",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jmbh/actions/runs/39234136587"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2-16",
      "date": "2026-10-19T10:07:47.000Z",
      "commit": "22f9110136943c161be08f7f84353a76f5ac259d",
      "fileid": "https://r2.ropensci.org/43b811d46ec8beb7520f21e9c385d44cdbf44514b248f6711b9af0288631c723",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jmbh/actions/runs/39234136587"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2-16",
      "date": "2026-10-19T10:07:51.000Z",
      "commit": "22f9110136943c161be08f7f84353a76f5ac259d",
      "fileid": "https://r2.ropensci.org/56440c6b7e3df710787c97bae412ccf621996cc6902e6f467fec0af13c773112",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jmbh/actions/runs/39234136587"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.2-16",
      "date": "2026-10-19T10:07:58.000Z",
      "commit": "22f9110136943c161be08f7f84353a76f5ac259d",
      "fileid": "https://r2.ropensci.org/91fb092d4b2743cfd187852a0bfd7411d8d3efc82cbbabc84f7d3e798c2797e5",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/jmbh/actions/runs/39234136587"
    }
  ]
}