{
  "_id": "6a2a80557b7a29ca600479d9",
  "Package": "wevid",
  "Type": "Package",
  "Title": "Weight of Evidence for Quantifying Performance of a Binary\nClassifier",
  "Version": "0.7.0",
  "Date": "2026-05-10",
  "Authors@R": "c(person(\"Paul\", \"McKeigue\",\nemail=\"paul.mckeigue@ed.ac.uk\", role=c(\"aut\", \"cre\")),\nperson(\"Marco\", \"Colombo\",\nemail=\"m.colombo@ed.ac.uk\", role=c(\"ctb\")))",
  "Description": "The distributions of the weight of evidence (log Bayes\nfactor) favouring case over noncase status in a test dataset\n(or test folds generated by cross-validation) can be used to\nquantify the performance of a diagnostic test. This package can\nbe used with any test dataset on which you have computed prior\nprobabilities of case status, posterior probabilities of case\nstatus, and you have the observed case-control status.  In\ncomparison with the C-statistic (area under ROC curve), the\nexpected weight of evidence (expected information for\ndiscrimination) has several advantages as a summary measure of\npredictive performance. To quantify how the predictor will\nbehave as a risk stratifier, the quantiles of the distributions\nof weight of evidence in cases and controls can be calculated\nand plotted.",
  "License": "GPL-3",
  "URL": "https://precmed.cphs.mvm.ed.ac.uk/pmckeigue/preprints/cstatistic.pdf",
  "LazyData": "true",
  "ByteCompile": "TRUE",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://pmckeigue.r-universe.dev",
  "Date/Publication": "2026-05-10 10:03:27 UTC",
  "RemoteUrl": "https://github.com/pmckeigue/wevid",
  "RemoteRef": "HEAD",
  "RemoteSha": "f62e4edcaebf76414f5ec21acf4b15537c18b3c1",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-11 09:27:14 UTC",
    "User": "root"
  },
  "Author": "Paul McKeigue [aut, cre],\nMarco Colombo [ctb]",
  "Maintainer": "Paul McKeigue <paul.mckeigue@ed.ac.uk>",
  "MD5sum": "b2c4a87d89884209a727163990960a7e",
  "_user": "pmckeigue",
  "_type": "src",
  "_file": "wevid_0.7.0.tar.gz",
  "_fileid": "2590dfead15e0f451b2cbfb44d0575ad4d4131eef0fc7e5d37b90becee376e5b",
  "_filesize": 315893,
  "_sha256": "2590dfead15e0f451b2cbfb44d0575ad4d4131eef0fc7e5d37b90becee376e5b",
  "_created": "2026-06-11T09:27:14.000Z",
  "_published": "2026-06-11T09:31:01.892Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80764696216,
      "time": 115,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7560207158"
    },
    {
      "job": 80764696286,
      "time": 170,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7560229955"
    },
    {
      "job": 80764696203,
      "time": 186,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7560225761"
    },
    {
      "job": 80764696195,
      "time": 176,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7560220686"
    },
    {
      "job": 80764110287,
      "time": 172,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7560160007"
    },
    {
      "job": 80764696184,
      "time": 98,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7560199974"
    },
    {
      "job": 80764696300,
      "time": 98,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7560200325"
    },
    {
      "job": 80764696239,
      "time": 90,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7560196626"
    },
    {
      "job": 80764696243,
      "time": 89,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7560196640"
    }
  ],
  "_buildurl": "https://github.com/r-universe/pmckeigue/actions/runs/27337093667",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/pmckeigue/wevid",
  "_commit": {
    "id": "f62e4edcaebf76414f5ec21acf4b15537c18b3c1",
    "author": "Paul McKeigue <paul.mckeigue@ed.ac.uk>",
    "committer": "Paul McKeigue <paul.mckeigue@ed.ac.uk>",
    "message": "Remove invalid URL from docs; exclude log from tarball\n\nCo-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>\n",
    "time": 1778407407
  },
  "_maintainer": {
    "name": "Paul McKeigue",
    "email": "paul.mckeigue@ed.ac.uk",
    "login": "pmckeigue",
    "description": "",
    "uuid": 3321634
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "pROC",
      "role": "Imports"
    },
    {
      "package": "reshape2",
      "role": "Imports"
    },
    {
      "package": "zoo",
      "role": "Imports"
    }
  ],
  "_owner": "pmckeigue",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-07",
      "n": 4
    },
    {
      "week": "2026-19",
      "n": 5
    }
  ],
  "_tags": [
    {
      "name": "v0.4.0",
      "date": "2026-05-09"
    },
    {
      "name": "v0.7.0",
      "date": "2026-05-10"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "pmckeigue",
      "count": 9,
      "uuid": 3321634
    }
  ],
  "_userbio": {
    "uuid": 3321634,
    "type": "user",
    "name": "Paul McKeigue"
  },
  "_downloads": {
    "count": 478,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/wevid"
  },
  "_devurl": "https://github.com/pmckeigue/wevid",
  "_searchresults": 9,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/wevid.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/pmckeigue/wevid",
  "_realowner": "pmckeigue",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.4.2",
      "date": "2018-06-15"
    },
    {
      "version": "0.5.1",
      "date": "2018-10-11"
    },
    {
      "version": "0.5.2",
      "date": "2018-12-16"
    },
    {
      "version": "0.6",
      "date": "2019-04-08"
    },
    {
      "version": "0.6.1",
      "date": "2019-05-13"
    },
    {
      "version": "0.6.2",
      "date": "2019-09-12"
    },
    {
      "version": "0.7.0",
      "date": "2026-05-11"
    }
  ],
  "_exports": [
    "auroc.model",
    "lambda.model",
    "means.densities",
    "plotcumfreqs",
    "plotroc",
    "plotW",
    "plotWdists",
    "prop.belowthreshold",
    "Wdensities.fromraw",
    "Wdensities.mix",
    "Wdensities.unadjusted",
    "weightsofevidence",
    "wtrue.results"
  ],
  "_datasets": [
    {
      "name": "cleveland",
      "title": "Example dataset based on cross-validated prediction of outcome in the Cleveland Heart Study",
      "object": "cleveland",
      "class": [
        "data.frame"
      ],
      "fields": [
        "prior.p",
        "posterior.p",
        "y"
      ],
      "rows": 297,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "wevid-package",
      "title": "Quantifying performance of a diagnostic test using the sampling distribution of the weight of evidence favouring case over noncase status",
      "topics": [
        "wevid-package",
        "wevid"
      ]
    },
    {
      "page": "auroc.model",
      "title": "Compute area under the ROC curve according to model-based densities",
      "topics": [
        "auroc.model"
      ]
    },
    {
      "page": "cleveland",
      "title": "Example dataset based on cross-validated prediction of outcome in the Cleveland Heart Study",
      "topics": [
        "cleveland"
      ]
    },
    {
      "page": "lambda.model",
      "title": "Compute the expected information for discrimination (expected weight of evidence) from the model-based densities",
      "topics": [
        "lambda.model"
      ]
    },
    {
      "page": "means.densities",
      "title": "Means of densities in cases and controls",
      "topics": [
        "means.densities"
      ]
    },
    {
      "page": "plotcumfreqs",
      "title": "Plot the cumulative frequency distributions in cases and in controls",
      "topics": [
        "plotcumfreqs"
      ]
    },
    {
      "page": "plotroc",
      "title": "Plot crude and model-based ROC curves",
      "topics": [
        "plotroc"
      ]
    },
    {
      "page": "plotW",
      "title": "plot log case/control density ratio against weight of evidence as a check that the densities are mathematically consistent",
      "topics": [
        "plotW"
      ]
    },
    {
      "page": "plotWdists",
      "title": "Plot the distribution of the weight of evidence in cases and in controls",
      "topics": [
        "plotWdists"
      ]
    },
    {
      "page": "prop.belowthreshold",
      "title": "Proportions of cases and controls below a given threshold of W (natural logs)",
      "topics": [
        "prop.belowthreshold"
      ]
    },
    {
      "page": "Wdensities.fromraw",
      "title": "Adjust the crude densities of weights of evidence in cases and controls to make them mathematically consistent",
      "topics": [
        "Wdensities.fromraw"
      ]
    },
    {
      "page": "Wdensities.mix",
      "title": "Compute smoothed densities for a spike-slab mixture distribution",
      "topics": [
        "Wdensities.mix"
      ]
    },
    {
      "page": "Wdensities.unadjusted",
      "title": "Calculate the unadjusted smoothed densities of W in cases and in controls",
      "topics": [
        "Wdensities.unadjusted"
      ]
    },
    {
      "page": "weightsofevidence",
      "title": "Calculate weights of evidence in natural log units",
      "topics": [
        "weightsofevidence"
      ]
    },
    {
      "page": "wtrue.results",
      "title": "Summary evaluation of predictive performance",
      "topics": [
        "wtrue.results"
      ]
    }
  ],
  "_readme": "https://github.com/pmckeigue/wevid/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "plyr",
    "pROC",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "reshape2",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "vctrs",
    "viridisLite",
    "withr",
    "zoo"
  ],
  "_score": 3,
  "_indexed": true,
  "_nocasepkg": "wevid",
  "_universes": [
    "pmckeigue"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.7.0",
      "date": "2026-06-11T09:29:01.000Z",
      "distro": "noble",
      "commit": "f62e4edcaebf76414f5ec21acf4b15537c18b3c1",
      "fileid": "35983bb84ad0f02a049f1d04aa2b161baf2aa31d4b11c57eaa7a23c2cce2235b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pmckeigue/actions/runs/27337093667"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.7.0",
      "date": "2026-06-11T09:29:54.000Z",
      "distro": "noble",
      "commit": "f62e4edcaebf76414f5ec21acf4b15537c18b3c1",
      "fileid": "9fe9ffd5c71f7f67831705eff74531a4da251e909828cfda356c3b758fd7c7df",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pmckeigue/actions/runs/27337093667"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.7.0",
      "date": "2026-06-11T09:29:53.000Z",
      "commit": "f62e4edcaebf76414f5ec21acf4b15537c18b3c1",
      "fileid": "677b06456cdda69b5accabb187053a3c297dc198dc48b03fa014693bee3ac8f8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pmckeigue/actions/runs/27337093667"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.7.0",
      "date": "2026-06-11T09:29:33.000Z",
      "commit": "f62e4edcaebf76414f5ec21acf4b15537c18b3c1",
      "fileid": "2b6afc6ee770c162a4b7b3737ab730c181d98a5755d292aa2a3dd0d2a3f38270",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pmckeigue/actions/runs/27337093667"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.7.0",
      "date": "2026-06-11T09:29:08.000Z",
      "commit": "f62e4edcaebf76414f5ec21acf4b15537c18b3c1",
      "fileid": "fd8411b44d01bdf2727f7fb94e647ae10a7effe6502d90e75a700765ae33a3b0",
      "status": "success",
      "buildurl": "https://github.com/r-universe/pmckeigue/actions/runs/27337093667"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.7.0",
      "date": "2026-06-11T09:28:34.000Z",
      "commit": "f62e4edcaebf76414f5ec21acf4b15537c18b3c1",
      "fileid": "dc47d13f213110a54f42a9f6288151d40868d429c29fd3541a1d28d72e5bb6c5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pmckeigue/actions/runs/27337093667"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.7.0",
      "date": "2026-06-11T09:28:23.000Z",
      "commit": "f62e4edcaebf76414f5ec21acf4b15537c18b3c1",
      "fileid": "ac878ee123318d5a00d2af013de53edd924c2c2934d40beaa38a3e0aff362bcd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pmckeigue/actions/runs/27337093667"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.7.0",
      "date": "2026-06-11T09:28:21.000Z",
      "commit": "f62e4edcaebf76414f5ec21acf4b15537c18b3c1",
      "fileid": "4048d6e2598d78bae675317e36d4230296d7fa67482fa821e276d9694935052d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pmckeigue/actions/runs/27337093667"
    }
  ]
}