{
  "_id": "6a632931d3420cf5dfdb7eb2",
  "Package": "predtools",
  "Title": "Prediction Model Tools",
  "Version": "0.0.3",
  "Authors@R": "c(\nperson(given = \"Mohsen\",\nfamily = \"Sadatsafavi\",\nrole = c(\"aut\", \"cph\"),\nemail = \"msafavi@mail.ubc.ca\",\ncomment = c(ORCID = \"0000-0002-0419-7862\")),\nperson(\"Amin\", \"Adibi\", email = \"adibi@alumni.ubc.ca\", role = c(\"cre\"),\ncomment = c(ORCID = \"0000-0003-2748-4781\")),\nperson(\"Abdollah\", \"Safari\", email = \"asafari@mail.ubc.ca\", role = c(\"aut\")),\nperson(\"Tae Yoon\", \"Lee\", email = \"dlxodbs@mail.ubc.ca\", role = c(\"aut\"))\n)",
  "Description": "Provides additional functions for evaluating predictive\nmodels, including plotting calibration curves and model-based\nReceiver Operating Characteristic (mROC) based on Sadatsafavi\net al (2021) <arXiv:2003.00316>.",
  "License": "GPL",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.2.3",
  "URL": "https://github.com/resplab/predtools",
  "BugReports": "https://github.com/resplab/predtools/issues",
  "VignetteBuilder": "knitr",
  "Repository": "https://resplab.r-universe.dev",
  "Date/Publication": "2023-06-16 16:26:00 UTC",
  "RemoteUrl": "https://github.com/resplab/predtools",
  "RemoteRef": "HEAD",
  "RemoteSha": "4d90f59c22485177c65cfae3778ec16ec48e950a",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-07-24 07:23:16 UTC",
    "User": "root"
  },
  "Author": "Mohsen Sadatsafavi [aut, cph] (ORCID:\n<https://orcid.org/0000-0002-0419-7862>),\nAmin Adibi [cre] (ORCID: <https://orcid.org/0000-0003-2748-4781>),\nAbdollah Safari [aut],\nTae Yoon Lee [aut]",
  "Maintainer": "Amin Adibi <adibi@alumni.ubc.ca>",
  "_user": "resplab",
  "_type": "src",
  "_file": "predtools_0.0.3.tar.gz",
  "_fileid": "https://r2.ropensci.org/ded3ac99b22279b04248ac1c8d314903170250aa2affa7eb51c43714d9a3d5cc",
  "_filesize": 1285316,
  "_sha256": "ded3ac99b22279b04248ac1c8d314903170250aa2affa7eb51c43714d9a3d5cc",
  "_expires": "2026-11-01T08:58:23.000Z",
  "_created": "2026-07-24T07:23:16.000Z",
  "_published": "2026-07-24T08:58:25.596Z",
  "_jobs": [
    {
      "job": 89424659317,
      "time": 116,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8589644111"
    },
    {
      "job": 89424659311,
      "time": 146,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8589653242"
    },
    {
      "job": 89424659386,
      "time": 123,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8589646059"
    },
    {
      "job": 89424659307,
      "time": 139,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8589651348"
    },
    {
      "job": 89424659441,
      "time": 142,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "8591683151"
    },
    {
      "job": 89424659377,
      "time": 349,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "8591624624"
    },
    {
      "job": 89424659342,
      "time": 120,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8591708665"
    },
    {
      "job": 89424659368,
      "time": 212,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8591529254"
    },
    {
      "job": 89424064042,
      "time": 207,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8589602130"
    },
    {
      "job": 89424659261,
      "time": 109,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8589641292"
    },
    {
      "job": 89424659378,
      "time": 115,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8589643257"
    },
    {
      "job": 89424659287,
      "time": 107,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "8589640213"
    },
    {
      "job": 89424659303,
      "time": 105,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8589639779"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/resplab/actions/runs/30075100580",
  "_status": "success",
  "_upstream": "https://github.com/resplab/predtools",
  "_commit": {
    "id": "4d90f59c22485177c65cfae3778ec16ec48e950a",
    "author": "Amin Adibi <adibi@alumni.ubc.ca>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #18 from tyhlee/patch-7\n\n",
    "time": 1686932760
  },
  "_maintainer": {
    "name": "Amin Adibi",
    "email": "adibi@alumni.ubc.ca",
    "login": "aminadibi",
    "description": "",
    "uuid": 20497354,
    "orcid": "0000-0003-2748-4781"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.6",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "pROC",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "RConics",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "role": "Imports"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    }
  ],
  "_owner": "resplab",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [],
  "_tags": [],
  "_stars": 11,
  "_contributors": [
    {
      "user": "aminadibi",
      "count": 75,
      "uuid": 20497354
    },
    {
      "user": "shoodood",
      "count": 33,
      "uuid": 63941553
    },
    {
      "user": "harrytyl",
      "count": 9,
      "uuid": 21114305
    },
    {
      "user": "msadatsafavi",
      "count": 6,
      "uuid": 25162764
    },
    {
      "user": "ab-sa",
      "count": 5,
      "uuid": 10256202
    }
  ],
  "_userbio": {
    "uuid": 49206837,
    "type": "organization",
    "name": "RESP",
    "followers": 16,
    "description": "The Respiratory Evaluation Sciences Program (RESP) at the University of British Columbia"
  },
  "_downloads": {
    "count": 453,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/predtools"
  },
  "_devurl": "https://github.com/resplab/predtools",
  "_searchresults": 155,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/predtools.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/resplab/predtools",
  "_realowner": "resplab",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.2",
      "date": "2021-10-05"
    },
    {
      "version": "0.0.3",
      "date": "2023-06-06"
    }
  ],
  "_exports": [
    "calc_mROC_stats",
    "calc_NB_moments",
    "calibration_plot",
    "evpi_val",
    "mAUC",
    "mROC",
    "mROC_analysis",
    "mROC_inference",
    "mu_max_trunc_bvn",
    "odds_adjust",
    "pred_summary_stat"
  ],
  "_datasets": [
    {
      "name": "dev_data",
      "title": "model development data",
      "object": "dev_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "age",
        "severity",
        "sex",
        "comorbidity",
        "y"
      ],
      "rows": 500,
      "table": true,
      "tojson": true
    },
    {
      "name": "gusto",
      "title": "Anonymized data from the gusto trial",
      "object": "gusto",
      "class": [
        "data.frame"
      ],
      "fields": [
        "day30",
        "sho",
        "hig",
        "dia",
        "hyp",
        "hrt",
        "ttr",
        "sex",
        "Killip",
        "age",
        "ste",
        "pulse",
        "sysbp",
        "ant",
        "miloc",
        "height",
        "weight",
        "pmi",
        "htn",
        "smk",
        "pan",
        "fam",
        "prevcvd",
        "prevcabg",
        "regl",
        "grpl",
        "grps",
        "tpa",
        "tx"
      ],
      "rows": 40830,
      "table": true,
      "tojson": true
    },
    {
      "name": "val_data",
      "title": "model validation data",
      "object": "val_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "age",
        "severity",
        "sex",
        "comorbidity",
        "y"
      ],
      "rows": 400,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "calc_mROC_stats",
      "title": "Calculates the absolute surface between the empirical and expected ROCs",
      "topics": [
        "calc_mROC_stats"
      ]
    },
    {
      "page": "calc_NB_moments",
      "title": "Calculates the first two moments of the bivariate distribution of NB_model and NB_all",
      "topics": [
        "calc_NB_moments"
      ]
    },
    {
      "page": "calibration_plot",
      "title": "Title Create calibration plot based on observed and predicted outcomes.",
      "topics": [
        "calibration_plot"
      ]
    },
    {
      "page": "dev_data",
      "title": "model development data",
      "topics": [
        "dev_data"
      ]
    },
    {
      "page": "evpi_val",
      "title": "EVPI (Expected Value of Perfect Information) for validation Takes a vector of mean and a 2X2 covariance matrix",
      "topics": [
        "evpi_val"
      ]
    },
    {
      "page": "gusto",
      "title": "Anonymized data from the gusto trial",
      "topics": [
        "gusto"
      ]
    },
    {
      "page": "mAUC",
      "title": "Takes in a mROC object and calculates the area under the curve",
      "topics": [
        "mAUC"
      ]
    },
    {
      "page": "mROC",
      "title": "Calculates mROC from the vector of predicted risks Takes in a vector of probabilities and returns mROC values (True positives, False Positives in an object of class mROC)",
      "topics": [
        "mROC"
      ]
    },
    {
      "page": "mROC_analysis",
      "title": "Main eROC analysis that plots ROC and eROC",
      "topics": [
        "mROC_analysis"
      ]
    },
    {
      "page": "mROC_inference",
      "title": "Statistical inference for comparing empirical and expected ROCs. If CI=TRUE then also returns pointwise CIs",
      "topics": [
        "mROC_inference"
      ]
    },
    {
      "page": "mu_max_trunc_bvn",
      "title": "Calculates the expected value of the maximum of two random variables with zero-truncated bivariate normal distribution Takes a vector of mean and a 2X2 covariance matrix",
      "topics": [
        "mu_max_trunc_bvn"
      ]
    },
    {
      "page": "odds_adjust",
      "title": "Title Update a prediction model for a binary outcome by multiplying a fixed odd-ratio to the predicted odds.",
      "topics": [
        "odds_adjust"
      ]
    },
    {
      "page": "pred_summary_stat",
      "title": "Title Estimate mean and variance of prediction based on model calibration output.",
      "topics": [
        "pred_summary_stat"
      ]
    },
    {
      "page": "val_data",
      "title": "model validation data",
      "topics": [
        "val_data"
      ]
    }
  ],
  "_readme": "https://github.com/resplab/predtools/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "mvtnorm",
    "pillar",
    "pkgconfig",
    "pROC",
    "R6",
    "RColorBrewer",
    "RConics",
    "Rcpp",
    "rlang",
    "S7",
    "scales",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "calibPlot.Rmd",
      "filename": "calibPlot.html",
      "title": "Calibration Plot",
      "engine": "knitr::rmarkdown",
      "headings": [
        "What is calibration plot?",
        "A step-by-step guide."
      ],
      "created": "2021-09-25 00:07:27",
      "modified": "2022-08-08 16:25:32",
      "commits": 3
    },
    {
      "source": "interceptAdj.Rmd",
      "filename": "interceptAdj.html",
      "title": "Intercept Adjustment",
      "engine": "knitr::rmarkdown",
      "headings": [
        "What is intercept adjustment?",
        "A step-by-step guide."
      ],
      "created": "2021-09-24 02:01:43",
      "modified": "2022-07-08 21:18:37",
      "commits": 6
    },
    {
      "source": "mROC.Rmd",
      "filename": "mROC.html",
      "title": "Model-based ROC",
      "engine": "knitr::rmarkdown",
      "headings": [
        "What is mROC?",
        "Installation",
        "How the package works",
        "A step-by-step guide.",
        "Important note: the statistical inference on comparing mROC and ROC cannot be used for internal validation. Such a test is made for external validation."
      ],
      "created": "2021-09-13 20:38:17",
      "modified": "2021-09-24 02:49:02",
      "commits": 4
    },
    {
      "source": "UNLI2D.Rmd",
      "filename": "UNLI2D.html",
      "title": "Unit Normal Loss Integral in Two Dimensions",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Background",
        "What is UNLI?",
        "UNLI with Application in VoI Analysis",
        "2D UNLI",
        "Tutorial",
        "Installation",
        "Set-up",
        "Simulated data",
        "EVPI calculation"
      ],
      "created": "2022-10-19 01:49:50",
      "modified": "2022-10-19 01:49:50",
      "commits": 1
    }
  ],
  "_score": 7.611935625040123,
  "_indexed": true,
  "_nocasepkg": "predtools",
  "_universes": [
    "resplab",
    "aminadibi"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.3",
      "date": "2026-07-24T07:25:13.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/775e0b1085af28a1b2554e4267e1af844b09327f5f9fdf4c6699bc434b2ec2f1",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/30075100580"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.3",
      "date": "2026-07-24T07:25:32.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/f2442cbbb9f69088558f25377a8c7e6089024170014de0030965c036c54db88e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/30075100580"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.3",
      "date": "2026-07-24T07:25:16.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/6764e4ee2a2271cbc1ed289f52bee1a87a864560bfaeff7068a7bde4a20f51e6",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/30075100580"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.3",
      "date": "2026-07-24T07:25:27.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/b7c7222622653d2b637a2eff68298fa1667021d636994705fdd5bb78d7f13115",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/30075100580"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.3",
      "date": "2026-07-24T08:56:41.000Z",
      "arch": "aarch64",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/bf3f3417958455070c196ea53bf741d7206b2040ee18f08cfa77a06e79709163",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/30075100580"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.3",
      "date": "2026-07-24T08:53:43.000Z",
      "arch": "x86_64",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/5b0f619133901ff7d47af16e263b2bfa38c0dd9141d84121d7dceeb4f8f7b1b2",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/30075100580"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.3",
      "date": "2026-07-24T08:57:32.000Z",
      "arch": "aarch64",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/c08a57a3a5a703f477c0b8eaf797dd44e59bf68163138133b3da0be17303130d",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/30075100580"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.3",
      "date": "2026-07-24T08:49:57.000Z",
      "arch": "x86_64",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/cadb24a41db2d03a525ba4b1eb75a30e5a0b99b43c42e8d8bd33badfef347492",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/30075100580"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.3",
      "date": "2026-07-24T07:25:24.000Z",
      "arch": "emscripten",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/0da4eed554ea2ce2e405614f860a4dc24791a16af425cdd4491809c9a91afcd3",
      "status": "success",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/30075100580"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.3",
      "date": "2026-07-24T07:24:34.000Z",
      "arch": "x86_64",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/a28ad945f424c92500f652485bd35f201f2ae1f33acde03a5e305b876e2929f8",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/30075100580"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.3",
      "date": "2026-07-24T07:24:29.000Z",
      "arch": "x86_64",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/38991fb0dc78f13570332e72a9f6af593d24f498d8dc4e1f3958bc5b9d9544f8",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/30075100580"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.3",
      "date": "2026-07-24T07:24:26.000Z",
      "arch": "x86_64",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/6feaec06ad792f48f9c071e350f3d034e5bef7f254f0b37074a4ce8bd37a7cf4",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/30075100580"
    }
  ]
}