{
  "_id": "6a16da6aacfb0bcc41d8f6b5",
  "Package": "GWnorm",
  "Type": "Package",
  "Title": "G-Wishart Normalising Constants for Gaussian Graphical Models",
  "Version": "1.0.1",
  "Date": "2026-05-27",
  "Authors@R": "c(person(given = \"Ching\",\nfamily = \"Wong\",\nrole = c(\"aut\")),\nperson(given = \"Jack\",\nfamily = \"Kuipers\",\nrole = c(\"aut\", \"cre\"),\nemail = \"jack.kuipers@bsse.ethz.ch\"))",
  "Author": "Ching Wong [aut], Jack Kuipers [aut, cre]",
  "Maintainer": "Jack Kuipers <jack.kuipers@bsse.ethz.ch>",
  "Description": "Computes G-Wishart normalising constants through a Fourier\napproach. Either exact analytical results, numerical\nintegration or Monte Carlo estimation are employed. Details at\nC. Wong, G. Moffa and J. Kuipers (2024),\n<doi:10.48550/arXiv.2404.06803>. Also includes approximations\nof the ratio of normalising constants, see details at C. Wong,\nG. Moffa and J. Kuipers (2025),\n<doi:10.48550/arXiv.2503.13046>.",
  "License": "GPL (>= 2)",
  "RoxygenNote": "7.3.3",
  "Encoding": "UTF-8",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-27 11:44:48 UTC",
    "User": "root"
  },
  "Config/pak/sysreqs": "libglpk-dev libgsl0-dev libxml2-dev pari-gp",
  "Repository": "https://jackkuipers.r-universe.dev",
  "Date/Publication": "2026-05-27 08:51:06 UTC",
  "RemoteUrl": "https://github.com/cran/GWnorm",
  "RemoteRef": "HEAD",
  "RemoteSha": "3f7569e7b5ff8cb12e0d554af08ee037bfca7c3a",
  "MD5sum": "c23ebc2d73e0ebabb0842753f280c662",
  "_user": "jackkuipers",
  "_type": "src",
  "_file": "GWnorm_1.0.1.tar.gz",
  "_fileid": "e47f3dbd4a4a73ba0782f61bcc07e8a2452efcbbe09f072ac8e38a0925c281dd",
  "_filesize": 142602,
  "_sha256": "e47f3dbd4a4a73ba0782f61bcc07e8a2452efcbbe09f072ac8e38a0925c281dd",
  "_created": "2026-05-27T11:44:48.000Z",
  "_published": "2026-05-27T11:50:02.223Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78069245928,
      "time": 180,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7239530988"
    },
    {
      "job": 78069246276,
      "time": 147,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7239523444"
    },
    {
      "job": 78069245956,
      "time": 173,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7239529439"
    },
    {
      "job": 78069245942,
      "time": 149,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7239523529"
    },
    {
      "job": 78069245867,
      "time": 138,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7239514809"
    },
    {
      "job": 78069245899,
      "time": 270,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7239547568"
    },
    {
      "job": 78069245900,
      "time": 160,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7239519006"
    },
    {
      "job": 78069245847,
      "time": 241,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7239541479"
    },
    {
      "job": 78068556133,
      "time": 317,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7239483605"
    },
    {
      "job": 78069245859,
      "time": 141,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7239521365"
    },
    {
      "job": 78069246096,
      "time": 104,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7239511971"
    },
    {
      "job": 78069245850,
      "time": 102,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7239511249"
    },
    {
      "job": 78069246158,
      "time": 111,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7239513655"
    }
  ],
  "_buildurl": "https://github.com/r-universe/jackkuipers/actions/runs/26508917574",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/GWnorm",
  "_commit": {
    "id": "3f7569e7b5ff8cb12e0d554af08ee037bfca7c3a",
    "author": "Jack Kuipers <jack.kuipers@bsse.ethz.ch>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.0.1\n",
    "time": 1779871866
  },
  "_maintainer": {
    "name": "Jack Kuipers",
    "email": "jack.kuipers@bsse.ethz.ch",
    "login": "jackkuipers",
    "description": "",
    "uuid": 31819930
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "role": "LinkingTo"
    },
    {
      "package": "igraph",
      "role": "Imports"
    },
    {
      "package": "BDgraph",
      "role": "Imports"
    },
    {
      "package": "CholWishart",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "role": "Imports"
    },
    {
      "package": "hypergeo",
      "role": "Imports"
    },
    {
      "package": "gsl",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.1.1",
      "role": "Imports"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-16",
      "n": 1
    },
    {
      "week": "2026-22",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.0",
      "date": "2026-04-16"
    },
    {
      "name": "1.0.1",
      "date": "2026-05-27"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "jackkuipers",
      "count": 2,
      "uuid": 31819930
    }
  ],
  "_userbio": {
    "uuid": 31819930,
    "type": "user",
    "name": "Jack Kuipers"
  },
  "_downloads": {
    "count": 483,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/GWnorm"
  },
  "_searchresults": 0,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/GWnorm.html",
    "manual.pdf"
  ],
  "_realowner": "jackkuipers",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0",
      "date": "2026-04-16"
    },
    {
      "version": "1.0.1",
      "date": "2026-05-27"
    }
  ],
  "_exports": [
    "C_GtoI_G",
    "check_prime_connected",
    "I_G_BD",
    "I_G_chordal",
    "I_G_complete",
    "I_G_MC",
    "I_G_ratio_approx",
    "I_G_ratio_approx_prime",
    "I_G_special",
    "I_Gnorm",
    "I_GtoC_G",
    "is_6_cycle",
    "is_k_partite",
    "Iss_cmat",
    "Iss_mat",
    "PD_complete",
    "prime_decomp"
  ],
  "_help": [
    {
      "page": "annotate_cliques",
      "title": "this helper function adds information to cliques related to the missing edges",
      "topics": [
        "annotate_cliques"
      ]
    },
    {
      "page": "C_GtoI_G",
      "title": "This function returns the log of the G-Wishart normalising constant I_G(beta, D) = int_[S^p_++(G)] det(K)^beta * exp(-tr(KD)) dK from the transformed version log(C_G(delta, D)) = int_[S^p_++(G)] det(K)^((delta-2)/2) * exp(-tr(KD)/2) dK",
      "topics": [
        "C_GtoI_G"
      ]
    },
    {
      "page": "check_prime_connected",
      "title": "This function just checks if a graph is connected and prime",
      "topics": [
        "check_prime_connected"
      ]
    },
    {
      "page": "chordal_factor",
      "title": "Chordal Factor # do not export",
      "topics": [
        "chordal_factor"
      ]
    },
    {
      "page": "Clique_complete",
      "title": "Clique-completion",
      "topics": [
        "Clique_complete"
      ]
    },
    {
      "page": "clique_update_D",
      "title": "Newton-Raphson update for the clique-completion",
      "topics": [
        "clique_update_D"
      ]
    },
    {
      "page": "form_triangle",
      "title": "Find triangle contains two missing edges # do not export",
      "topics": [
        "form_triangle"
      ]
    },
    {
      "page": "I_G_BD",
      "title": "This function is a wrapper for BDgraph to compare and to avoid the NOTE in the package checks since we only had BDgraph in the examples",
      "topics": [
        "I_G_BD"
      ]
    },
    {
      "page": "I_G_chordal",
      "title": "G Wishart normalising constant for chordal graphs",
      "topics": [
        "I_G_chordal"
      ]
    },
    {
      "page": "I_G_complete",
      "title": "G Wishart normalising constant for complete graphs",
      "topics": [
        "I_G_complete"
      ]
    },
    {
      "page": "I_G_MC",
      "title": "G Wishart normalising constant through MC integration",
      "topics": [
        "I_G_MC"
      ]
    },
    {
      "page": "I_G_ratio_approx",
      "title": "G Wishart normalising constant",
      "topics": [
        "I_G_ratio_approx"
      ]
    },
    {
      "page": "I_G_ratio_approx_prime",
      "title": "This function returns the approximation of the ratio of log transformed G-Wishart normalising constants I_G(beta, D) / I_G(beta, I) for connected prime graphs G.  If there is no explicit formula, the approximation is used. Note that this is the same as the ratio C_G(delta, D) / C_G(delta, I) with delta = 2*beta + 2",
      "topics": [
        "I_G_ratio_approx_prime"
      ]
    },
    {
      "page": "I_G_special",
      "title": "G Wishart normalising constant for special cases",
      "topics": [
        "I_G_special"
      ]
    },
    {
      "page": "I_Gnorm",
      "title": "G Wishart normalising constant",
      "topics": [
        "I_Gnorm"
      ]
    },
    {
      "page": "I_GtoC_G",
      "title": "This function returns the log of the G-Wishart normalising constant log(C_G(delta, D)) = int_[S^p_++(G)] det(K)^((delta-2)/2) * exp(-tr(KD)/2) dK from the transformed version I_G(beta, D) = int_[S^p_++(G)] det(K)^beta * exp(-tr(KD)) dK",
      "topics": [
        "I_GtoC_G"
      ]
    },
    {
      "page": "is_6_cycle",
      "title": "Determine whether the graph is the cycle of length 6 or its complement",
      "topics": [
        "is_6_cycle"
      ]
    },
    {
      "page": "is_k_partite",
      "title": "Determine whether the graph is complete k partite",
      "topics": [
        "is_k_partite"
      ]
    },
    {
      "page": "Iss_cmat",
      "title": "Isserlis complement matrix",
      "topics": [
        "Iss_cmat"
      ]
    },
    {
      "page": "Iss_mat",
      "title": "Isserlis matrix",
      "topics": [
        "Iss_mat"
      ]
    },
    {
      "page": "local_mean_grad",
      "title": "Compute means and gradients for the Newton-Raphson update for the clique-completion",
      "topics": [
        "local_mean_grad"
      ]
    },
    {
      "page": "local_precision",
      "title": "Compute second moment of the log expansion of the determinant (assuming the mean is 0 from Clique_completion)",
      "topics": [
        "local_precision"
      ]
    },
    {
      "page": "PD_complete",
      "title": "PD-completion",
      "topics": [
        "PD_complete"
      ]
    },
    {
      "page": "predict_row",
      "title": "Predict Row # do not export",
      "topics": [
        "predict_row"
      ]
    },
    {
      "page": "prime_decomp",
      "title": "Prime Decomposition",
      "topics": [
        "prime_decomp"
      ]
    }
  ],
  "_rundeps": [
    "BDgraph",
    "CholWishart",
    "cli",
    "contfrac",
    "cpp11",
    "deSolve",
    "elliptic",
    "farver",
    "ggplot2",
    "glue",
    "gsl",
    "gtable",
    "hypergeo",
    "igraph",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "mvtnorm",
    "pkgconfig",
    "pROC",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "rlang",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 1.3010299956639813,
  "_indexed": true,
  "_nocasepkg": "gwnorm",
  "_universes": [
    "jackkuipers"
  ],
  "_previous": "1.0",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.1",
      "date": "2026-05-27T11:47:54.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "3f7569e7b5ff8cb12e0d554af08ee037bfca7c3a",
      "fileid": "ee6c9f1fe6f420d3d47641fbd2354518c939f2b8625740753795bea91c220860",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jackkuipers/actions/runs/26508917574"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.1",
      "date": "2026-05-27T11:47:21.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "3f7569e7b5ff8cb12e0d554af08ee037bfca7c3a",
      "fileid": "6357ab49acdc43fa505a4c77cfd65c3ec404b5317906ca71be08c1bb3a39fde1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jackkuipers/actions/runs/26508917574"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.1",
      "date": "2026-05-27T11:47:49.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "3f7569e7b5ff8cb12e0d554af08ee037bfca7c3a",
      "fileid": "8fce096d6fab22a601662f724fe139a2fd1d0049ce029871d5a31bdfa181a280",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jackkuipers/actions/runs/26508917574"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.1",
      "date": "2026-05-27T11:47:23.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "3f7569e7b5ff8cb12e0d554af08ee037bfca7c3a",
      "fileid": "1db1d30405e913c5edddea9bcb3fb51ca1391568cf31e1e1f63faf228833aba1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jackkuipers/actions/runs/26508917574"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.1",
      "date": "2026-05-27T11:46:54.000Z",
      "arch": "aarch64",
      "commit": "3f7569e7b5ff8cb12e0d554af08ee037bfca7c3a",
      "fileid": "f4240460a3908d8c7566448abdf1a167dec263e7eb139570470fc9dc3af31180",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jackkuipers/actions/runs/26508917574"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.1",
      "date": "2026-05-27T11:48:47.000Z",
      "arch": "x86_64",
      "commit": "3f7569e7b5ff8cb12e0d554af08ee037bfca7c3a",
      "fileid": "10ffe80b10148abc24ae5acc36edd7d9c4c85c5e6bfe1a863e32de9841d4a7f3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jackkuipers/actions/runs/26508917574"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.1",
      "date": "2026-05-27T11:46:58.000Z",
      "arch": "aarch64",
      "commit": "3f7569e7b5ff8cb12e0d554af08ee037bfca7c3a",
      "fileid": "01b0acd778f244148ed7a118ac81eed2dbcd37c7bae03b1a2d81c9a341e66305",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jackkuipers/actions/runs/26508917574"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.1",
      "date": "2026-05-27T11:48:24.000Z",
      "arch": "x86_64",
      "commit": "3f7569e7b5ff8cb12e0d554af08ee037bfca7c3a",
      "fileid": "64331b26db144279cf91a13e89c83993dee6a61b85fd60bc0e6c78c88fbda1e6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jackkuipers/actions/runs/26508917574"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.1",
      "date": "2026-05-27T11:47:30.000Z",
      "arch": "emscripten",
      "commit": "3f7569e7b5ff8cb12e0d554af08ee037bfca7c3a",
      "fileid": "0951592a17f0f62b71c4e95bfccf34556e22973349b4ff2e7cbd47f7cf14e7b6",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jackkuipers/actions/runs/26508917574"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-05-27T11:46:11.000Z",
      "arch": "x86_64",
      "commit": "3f7569e7b5ff8cb12e0d554af08ee037bfca7c3a",
      "fileid": "af5c59024484dc4c03acb7710fd19b6c17cbebac2b0164c622578fca03b6c6be",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jackkuipers/actions/runs/26508917574"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-05-27T11:46:03.000Z",
      "arch": "x86_64",
      "commit": "3f7569e7b5ff8cb12e0d554af08ee037bfca7c3a",
      "fileid": "ff43c552da6f4864dda49a8334f1d3de424d85343ee2399e5f8c037e91217c53",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jackkuipers/actions/runs/26508917574"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-05-27T11:46:10.000Z",
      "arch": "x86_64",
      "commit": "3f7569e7b5ff8cb12e0d554af08ee037bfca7c3a",
      "fileid": "2d74a2c7517f25c35ad403fdeba8219ff8c2fb87d3c96934b18fdb504fbef59b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jackkuipers/actions/runs/26508917574"
    }
  ]
}