{
  "_id": "6ac8c57bde46216d5edd6e1f",
  "Type": "Package",
  "Package": "BayesianReasoning",
  "Title": "Plot Positive and Negative Predictive Values for Medical Tests",
  "Version": "0.4.3",
  "Date": "2025-08-23",
  "Authors@R": "person(\"Gorka\", \"Navarrete\", , \"gorkang@gmail.com\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0001-7678-8656\"))",
  "Maintainer": "Gorka Navarrete <gorkang@gmail.com>",
  "Description": "Functions to plot and help understand positive and\nnegative predictive values (PPV and NPV), and their\nrelationship with sensitivity, specificity, and prevalence. See\nAkobeng, A.K. (2007) <doi:10.1111/j.1651-2227.2006.00180.x> for\na theoretical overview of the technical concepts and Navarrete\net al. (2015) for a practical explanation about the importance\nof their understanding <doi:10.3389/fpsyg.2015.01327>.",
  "License": "CC0",
  "URL": "https://github.com/gorkang/BayesianReasoning",
  "BugReports": "https://github.com/gorkang/BayesianReasoning/issues",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.2",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "cmake libfontconfig1-dev libfreetype6-dev make\nlibicu-dev libjpeg-dev libpng-dev libuv1-dev libxml2-dev\nlibssl-dev libnode-dev",
  "Repository": "https://gorkang.r-universe.dev",
  "Date/Publication": "2025-08-23 07:28:47 UTC",
  "RemoteUrl": "https://github.com/gorkang/bayesianreasoning",
  "RemoteRef": "HEAD",
  "RemoteSha": "41749c984a29e0818a3a959cb0709e7b267fc692",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-09 10:06:28 UTC",
    "User": "root"
  },
  "Author": "Gorka Navarrete [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-7678-8656>)",
  "_user": "gorkang",
  "_type": "src",
  "_file": "BayesianReasoning_0.4.3.tar.gz",
  "_fileid": "https://r2.ropensci.org/7557bca124faf6f537241325a16e86c12b6b4962175514c6860da3d5c7b276a2",
  "_filesize": 5311342,
  "_sha256": "7557bca124faf6f537241325a16e86c12b6b4962175514c6860da3d5c7b276a2",
  "_expires": "2027-01-17T10:44:09.000Z",
  "_created": "2026-10-09T10:06:28.000Z",
  "_published": "2026-10-09T10:44:11.870Z",
  "_buildurl": "https://github.com/r-universe/gorkang/actions/runs/37915216067",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 113770775881,
      "time": 218,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11609408682"
    },
    {
      "job": 113770775620,
      "time": 217,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11609548050"
    },
    {
      "job": 113770775515,
      "time": 225,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11610749059"
    },
    {
      "job": 113770775563,
      "time": 208,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11610973338"
    },
    {
      "job": 113769726098,
      "time": 180,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11608768149"
    },
    {
      "job": 113770775523,
      "time": 119,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11608743477"
    },
    {
      "job": 113770775619,
      "time": 128,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11608958335"
    },
    {
      "job": 113770775761,
      "time": 125,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11608843439"
    },
    {
      "job": 113770775688,
      "time": 116,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11608928427"
    }
  ],
  "_upstream": "https://github.com/gorkang/bayesianreasoning",
  "_commit": {
    "id": "41749c984a29e0818a3a959cb0709e7b267fc692",
    "author": "G <gorkang@gmail.com>",
    "committer": "G <gorkang@gmail.com>",
    "message": "add new line at the end\n",
    "time": 1755934127
  },
  "_maintainer": {
    "name": "Gorka Navarrete",
    "email": "gorkang@gmail.com",
    "login": "gorkang",
    "mastodon": "@gorkang@fosstodon.org",
    "bluesky": "@gorkang.bsky.social",
    "orcid": "0000-0001-7678-8656",
    "description": "Bayesian reasoning and shared medical decision making. Departamento de Psicología Cognitiva, Social y Organizacional. Universidad de La Laguna.",
    "uuid": 6491790
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "ggforce",
      "version": ">= 0.4.0",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "ggtext",
      "role": "Imports"
    },
    {
      "package": "gt",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "png",
      "role": "Imports"
    },
    {
      "package": "reshape2",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "curl",
      "role": "Suggests"
    },
    {
      "package": "httr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "patchwork",
      "role": "Suggests"
    },
    {
      "package": "purrr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "vdiffr",
      "role": "Suggests"
    },
    {
      "package": "webshot2",
      "role": "Suggests"
    }
  ],
  "_owner": "gorkang",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_topics": [
    "bayesian-inference",
    "negative-predictive-value",
    "positive-predictive-value"
  ],
  "_stars": 8,
  "_contributors": [
    {
      "user": "gorkang",
      "count": 253,
      "uuid": 6491790
    }
  ],
  "_userbio": {
    "uuid": 6491790,
    "type": "user",
    "name": "Gorka Navarrete",
    "followers": 22,
    "description": "Bayesian reasoning and shared medical decision making. Departamento de Psicología Cognitiva, Social y Organizacional. Universidad de La Laguna."
  },
  "_downloads": {
    "count": 522,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/BayesianReasoning"
  },
  "_devurl": "https://github.com/gorkang/bayesianreasoning",
  "_searchresults": 18,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/BayesianReasoning.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/gorkang/bayesianreasoning",
  "_realowner": "gorkang",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.3.1",
      "date": "2020-06-30"
    },
    {
      "version": "0.3.2",
      "date": "2020-07-03"
    },
    {
      "version": "0.3.3",
      "date": "2021-06-21"
    },
    {
      "version": "0.4.0",
      "date": "2021-12-21"
    },
    {
      "version": "0.4.1",
      "date": "2022-01-07"
    },
    {
      "version": "0.4.2",
      "date": "2023-11-14"
    },
    {
      "version": "0.4.3",
      "date": "2025-08-23"
    }
  ],
  "_exports": [
    "%>%",
    "min_possible_prevalence",
    "plot_cutoff",
    "PPV_diagnostic_vs_screening",
    "PPV_heatmap",
    "remove_layers_cutoff_plot"
  ],
  "_help": [
    {
      "page": "min_possible_prevalence",
      "title": "Show minimum possible prevalence given the test characteristics",
      "topics": [
        "min_possible_prevalence"
      ]
    },
    {
      "page": "plot_cutoff",
      "title": "plot_cutoff Create a cutoff plot, showing the healthy and sick distributions, and the consequences of different cutoff points",
      "topics": [
        "plot_cutoff"
      ]
    },
    {
      "page": "PPV_diagnostic_vs_screening",
      "title": "Plot PPV values for a diagnostic and a screening group",
      "topics": [
        "PPV_diagnostic_vs_screening"
      ]
    },
    {
      "page": "PPV_heatmap",
      "title": "Plot PPV and NPV heatmaps",
      "topics": [
        "PPV_heatmap"
      ]
    },
    {
      "page": "remove_layers_cutoff_plot",
      "title": "remove_layers_cutoff_plot Remove layers from a cutoff plot. This is useful to show how different things are calculated (e.g. Sensitivity)",
      "topics": [
        "remove_layers_cutoff_plot"
      ]
    }
  ],
  "_pkglogo": "https://github.com/gorkang/bayesianreasoning/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/gorkang/bayesianreasoning/raw/HEAD/README.md",
  "_rundeps": [
    "base64enc",
    "bigD",
    "bitops",
    "bslib",
    "cachem",
    "cli",
    "commonmark",
    "cpp11",
    "curl",
    "digest",
    "dplyr",
    "evaluate",
    "farver",
    "fastmap",
    "fontawesome",
    "fs",
    "generics",
    "ggforce",
    "ggplot2",
    "ggtext",
    "glue",
    "gridtext",
    "gt",
    "gtable",
    "highr",
    "htmltools",
    "htmlwidgets",
    "isoband",
    "jpeg",
    "jquerylib",
    "jsonlite",
    "juicyjuice",
    "knitr",
    "labeling",
    "lifecycle",
    "litedown",
    "magrittr",
    "markdown",
    "MASS",
    "memoise",
    "mime",
    "pillar",
    "pkgconfig",
    "plyr",
    "png",
    "polyclip",
    "purrr",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "reactable",
    "reactR",
    "reshape2",
    "rlang",
    "rmarkdown",
    "S7",
    "sass",
    "scales",
    "stringi",
    "stringr",
    "systemfonts",
    "tibble",
    "tidyr",
    "tidyselect",
    "tinytex",
    "tweenr",
    "utf8",
    "V8",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "xml2",
    "yaml"
  ],
  "_vignettes": [
    {
      "source": "introduction.Rmd",
      "filename": "introduction.html",
      "title": "Introduction to BayesianReasoning",
      "author": "Gorka Navarrete",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Bayesian reasoning",
        "Bayesian reasoning in medical contexts",
        "PPV_heatmap()",
        "NPV",
        "Area overlay",
        "Line overlay",
        "PPV_diagnostic_vs_screening()",
        "min_possible_prevalence()",
        "plot_cutoff()"
      ],
      "created": "2018-09-28 14:40:57",
      "modified": "2025-06-20 19:29:17",
      "commits": 22
    },
    {
      "source": "PPV_NPV.Rmd",
      "filename": "PPV_NPV.html",
      "title": "Screening tests and PPV vs NPV",
      "author": "Gorka Navarrete",
      "engine": "knitr::rmarkdown",
      "headings": [
        "PPV and NPV definitions",
        "Example",
        "PPV",
        "NPV",
        "Combined PPV + NPV",
        "Sources"
      ],
      "created": "2020-07-03 13:13:29",
      "modified": "2025-06-20 19:29:17",
      "commits": 10
    }
  ],
  "_score": 5.15836249209525,
  "_indexed": true,
  "_nocasepkg": "bayesianreasoning",
  "_universes": [
    "gorkang"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.3",
      "date": "2026-10-09T10:09:30.000Z",
      "distro": "resolute",
      "commit": "41749c984a29e0818a3a959cb0709e7b267fc692",
      "fileid": "https://r2.ropensci.org/1db472bc03c4b278cb49775c56c50923c86568ed2db8da03906a5835a885e7a6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gorkang/actions/runs/37915216067"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.4.3",
      "date": "2026-10-09T10:09:30.000Z",
      "distro": "resolute",
      "commit": "41749c984a29e0818a3a959cb0709e7b267fc692",
      "fileid": "https://r2.ropensci.org/5c5b707b6d1ea39e33e8c8ac70bc5ec666654c2eb0087bf7abad3110dc244b97",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gorkang/actions/runs/37915216067"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.3",
      "date": "2026-10-09T10:42:30.000Z",
      "commit": "41749c984a29e0818a3a959cb0709e7b267fc692",
      "fileid": "https://r2.ropensci.org/0b67e1b2e8d559b095822b56184b70493072edc2a980deb01b4e33b8186afabb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gorkang/actions/runs/37915216067"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.4.3",
      "date": "2026-10-09T10:38:23.000Z",
      "commit": "41749c984a29e0818a3a959cb0709e7b267fc692",
      "fileid": "https://r2.ropensci.org/a0a51ea624c69c7edecf423657eb2003c96e2599be551bfa5a5fcaeb0386b070",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gorkang/actions/runs/37915216067"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.3",
      "date": "2026-10-09T10:08:41.000Z",
      "commit": "41749c984a29e0818a3a959cb0709e7b267fc692",
      "fileid": "https://r2.ropensci.org/d26ea02c5e39eaf4a2abdc04bc4f596416b85003513a38efaaf87d4a13578bc2",
      "status": "success",
      "buildurl": "https://github.com/r-universe/gorkang/actions/runs/37915216067"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.3",
      "date": "2026-10-09T10:07:47.000Z",
      "commit": "41749c984a29e0818a3a959cb0709e7b267fc692",
      "fileid": "https://r2.ropensci.org/efbf69c9c68c88c946ff8e86f8e52dcc4e0c6df0435beddd8f21c42b585aea5b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gorkang/actions/runs/37915216067"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.3",
      "date": "2026-10-09T10:07:43.000Z",
      "commit": "41749c984a29e0818a3a959cb0709e7b267fc692",
      "fileid": "https://r2.ropensci.org/8856478e6c7d828294dc43851763bb51853e5eb86c8126b15db469635861782c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gorkang/actions/runs/37915216067"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.4.3",
      "date": "2026-10-09T10:07:37.000Z",
      "commit": "41749c984a29e0818a3a959cb0709e7b267fc692",
      "fileid": "https://r2.ropensci.org/94665ce53243d5ea526e8d5fbcef90f1ede695996fdeafcc2e667d92b8f78e19",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gorkang/actions/runs/37915216067"
    }
  ]
}