{
  "_id": "6ac229c4773a0037682c2e0f",
  "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-10-04 10:19:38 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/566184944f0ca4cc70f294018c3ae50c2e694ccb1bdf1b381c12d9bef422bd0c",
  "_filesize": 1286740,
  "_sha256": "566184944f0ca4cc70f294018c3ae50c2e694ccb1bdf1b381c12d9bef422bd0c",
  "_expires": "2027-01-12T10:26:10.000Z",
  "_created": "2026-10-04T10:19:38.000Z",
  "_published": "2026-10-04T10:26:12.284Z",
  "_jobs": [
    {
      "job": 111414992651,
      "time": 130,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "11300770888"
    },
    {
      "job": 111414992565,
      "time": 139,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "11300571441"
    },
    {
      "job": 111414992561,
      "time": 134,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11300343845"
    },
    {
      "job": 111414992522,
      "time": 163,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11299649927"
    },
    {
      "job": 111414992469,
      "time": 136,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "11300204476"
    },
    {
      "job": 111414992517,
      "time": 182,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "11300179710"
    },
    {
      "job": 111414992546,
      "time": 139,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11301075255"
    },
    {
      "job": 111414992484,
      "time": 222,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11301215221"
    },
    {
      "job": 111414537204,
      "time": 172,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11300254237"
    },
    {
      "job": 111414992518,
      "time": 110,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11301070200"
    },
    {
      "job": 111414992544,
      "time": 337,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "11300319415"
    },
    {
      "job": 111414992532,
      "time": 147,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "11300074862"
    },
    {
      "job": 111414992569,
      "time": 109,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "11300965718"
    },
    {
      "job": 111414992507,
      "time": 353,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11300840808"
    },
    {
      "job": 111414992571,
      "time": 132,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11300821545"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/resplab/actions/runs/37194853485",
  "_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": 12,
  "_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": 391,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/predtools"
  },
  "_devurl": "https://github.com/resplab/predtools",
  "_searchresults": 157,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "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/predtools.html",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_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.6552921401684655,
  "_indexed": true,
  "_nocasepkg": "predtools",
  "_universes": [
    "resplab",
    "aminadibi"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.3",
      "date": "2026-10-04T10:21:46.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/0448cf5eecf88d6850fd9a747dff2581cbda03d1f4537bed012695123e43dae5",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/37194853485"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.3",
      "date": "2026-10-04T10:22:00.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/b1264c15dd054153c71a8e4cbd621e857d17a9f1c918bd042f2d8c15321c4eb9",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/37194853485"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.3",
      "date": "2026-10-04T10:21:50.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/18e605d7f7ada60e37947e8f33f08d7cbc596b7726432ca1e0e94ec69ca56f81",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/37194853485"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.3",
      "date": "2026-10-04T10:22:10.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/3827fa3bf36804cbadddb3ec7fbc74cc2ddc9bfd0cb202db154553f33859e635",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/37194853485"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.3",
      "date": "2026-10-04T10:21:39.000Z",
      "arch": "aarch64",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/7e7fb2aa4ecab2e4dd45ca0d8f2350d14d79b2c61f1b99b2cefe672dfb3b5d68",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/37194853485"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.3",
      "date": "2026-10-04T10:22:12.000Z",
      "arch": "x86_64",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/9df4f298fb4c9af97950187987da8dc4580646eeca48c0e84469b11e497a1fa2",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/37194853485"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.3",
      "date": "2026-10-04T10:21:40.000Z",
      "arch": "aarch64",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/6c992691fda74bba120bf3b39db54e3e4895484610e2170bf7b445333de30e32",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/37194853485"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.3",
      "date": "2026-10-04T10:22:25.000Z",
      "arch": "x86_64",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/f02f357483c9226827392ec5b615063bf10f42ee7ca32156fc2b3ce137acc3c3",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/37194853485"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.3",
      "date": "2026-10-04T10:21:53.000Z",
      "arch": "emscripten",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/3060f030f4aabcb02d9c129f18521bf461ffd9d77e5ab7eb8e705bf5070cfdeb",
      "status": "success",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/37194853485"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.3",
      "date": "2026-10-04T10:24:17.000Z",
      "arch": "aarch64",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/4446360d89df72652657c9aa2db97749cebbb01abf5394c316d20380fd4b2658",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/37194853485"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.3",
      "date": "2026-10-04T10:20:55.000Z",
      "arch": "x86_64",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/8e62447e7f6f487b9a9082b824798cd630c69a295a5a167353526271fb8ceff5",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/37194853485"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.3",
      "date": "2026-10-04T10:20:51.000Z",
      "arch": "x86_64",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/8260a9f60ff97a02bf71fc1fd0d7be6b8895af285a989ae42093b4ae8a59a2f4",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/37194853485"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.3",
      "date": "2026-10-04T10:24:50.000Z",
      "arch": "aarch64",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/09abc064b49c9914f33e706cbb982b64e38ebabe64ac1457a1e33adafd38db7d",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/37194853485"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.3",
      "date": "2026-10-04T10:21:11.000Z",
      "arch": "x86_64",
      "commit": "4d90f59c22485177c65cfae3778ec16ec48e950a",
      "fileid": "https://r2.ropensci.org/1ddc82f8d1107a8b04dd17e560cae68eb76b28a11bad12653c74c4a48eb88553",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/37194853485"
    }
  ]
}