{
  "_id": "6b02f1a27510c4b9d7d8ff17",
  "Package": "riskscores",
  "Title": "Optimized Integer Risk Score Models",
  "Version": "1.3.1",
  "Authors@R": "c(\nperson(\"Hannah\", \"Eglinton\", , \"eglintonh@gmail.com\", role = c(\"aut\", \"cre\")),\nperson(\"Seehanah\", \"Tang\", , \"seehanah_tang@brown.edu\", role = c(\"aut\", \"aut\")),\nperson(\"Alice\", \"Paul\", , \"alice_paul@brown.edu\", role = c(\"aut\", \"cph\")),\nperson(\"Oscar\", \"Yan\", , \"yu_yan@brown.edu\", role = \"aut\"),\nperson(given = \"R Core Team\", role = c(\"ctb\", \"cph\"),\ncomment = \"Copyright holder of Rinternals.h, R.h, lm.c, Applic.h, statsR.h,\nglm package\"),\nperson(given = \"Robert\", family = \"Gentleman\", role = c(\"ctb\", \"cph\"),\ncomment = \"Author and copyright holder of Rinternals.h\"),\nperson(given = \"Ross\", family = \"Ihaka\", role = c(\"ctb\", \"cph\"),\ncomment = \"Author and copyright holder of Rinternals.h\"),\nperson(given = \"Simon\", family = \"Davies\", role = \"ctb\",\ncomment = \"Author of glm.fit function (modified in cv_risk_mod.R)\"),\nperson(given = \"Thomas\", family = \"Lumley\", role = \"ctb\",\ncomment = \"Author of glm.fit function (modified in cv_risk_mod.R)\"))",
  "Description": "Implements an optimized approach to learning risk score\nmodels, where sparsity and integer constraints are integrated\ninto the model-fitting process.",
  "URL": "https://github.com/hjeglinton/riskscores",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr, kableExtra",
  "LazyData": "true",
  "Repository": "https://hjeglinton.r-universe.dev",
  "Date/Publication": "2026-10-23 17:13:24 UTC",
  "RemoteUrl": "https://github.com/hjeglinton/riskscores",
  "RemoteRef": "HEAD",
  "RemoteSha": "d77035927bdbc81020f606f52337fb4617f3ffe8",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-22 13:40:07 UTC",
    "User": "root"
  },
  "Author": "Hannah Eglinton [aut, cre],\nSeehanah Tang [aut, aut],\nAlice Paul [aut, cph],\nOscar Yan [aut],\nR Core Team [ctb, cph] (Copyright holder of Rinternals.h, R.h, lm.c,\nApplic.h, statsR.h, glm package),\nRobert Gentleman [ctb, cph] (Author and copyright holder of\nRinternals.h),\nRoss Ihaka [ctb, cph] (Author and copyright holder of Rinternals.h),\nSimon Davies [ctb] (Author of glm.fit function (modified in\ncv_risk_mod.R)),\nThomas Lumley [ctb] (Author of glm.fit function (modified in\ncv_risk_mod.R))",
  "Maintainer": "Hannah Eglinton <eglintonh@gmail.com>",
  "_user": "hjeglinton",
  "_type": "src",
  "_file": "riskscores_1.3.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/e80c7c11b2acc0febeb6805c870e7c8e1a8294152eda134fde493594d98c8c6b",
  "_filesize": 315151,
  "_sha256": "e80c7c11b2acc0febeb6805c870e7c8e1a8294152eda134fde493594d98c8c6b",
  "_expires": "2027-03-02T13:44:00.000Z",
  "_created": "2026-11-22T13:40:07.000Z",
  "_published": "2026-11-22T13:44:02.582Z",
  "_upstream": "https://github.com/hjeglinton/riskscores",
  "_status": "success",
  "_maintainer": {
    "name": "Hannah Eglinton",
    "email": "eglintonh@gmail.com",
    "login": "hjeglinton",
    "description": "",
    "uuid": 124302914
  },
  "_jobs": [
    {
      "job": 137227318955,
      "time": 155,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14756549302"
    },
    {
      "job": 137227318967,
      "time": 126,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14757300408"
    },
    {
      "job": 137227318959,
      "time": 185,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14757076584"
    },
    {
      "job": 137227318971,
      "time": 186,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14757056730"
    },
    {
      "job": 137226195099,
      "time": 255,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14756573829"
    },
    {
      "job": 137227318948,
      "time": 90,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14756274983"
    },
    {
      "job": 137227319029,
      "time": 88,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14757335353"
    },
    {
      "job": 137227318996,
      "time": 80,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14756577665"
    },
    {
      "job": 137227318964,
      "time": 72,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14757230643"
    }
  ],
  "_buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/45028326709",
  "_commit": {
    "id": "d77035927bdbc81020f606f52337fb4617f3ffe8",
    "author": "alicepaul <alice_paul@brown.edu>",
    "committer": "alicepaul <alice_paul@brown.edu>",
    "message": "Update DESCRIPTION\n",
    "time": 1792775604
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "foreach",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "pROC",
      "role": "Imports"
    },
    {
      "package": "PRROC",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "kableExtra",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "doParallel",
      "role": "Suggests"
    }
  ],
  "_owner": "hjeglinton",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-33",
      "n": 1
    },
    {
      "week": "2026-34",
      "n": 1
    },
    {
      "week": "2026-35",
      "n": 1
    },
    {
      "week": "2026-43",
      "n": 5
    }
  ],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "hjeglinton",
      "count": 69,
      "uuid": 124302914
    },
    {
      "user": "alicepaul",
      "count": 18,
      "uuid": 10962581
    },
    {
      "user": "seehanahtang",
      "count": 11,
      "uuid": 67703029
    },
    {
      "user": "janiavdv",
      "count": 2,
      "uuid": 98466424
    },
    {
      "user": "watersoup",
      "count": 2,
      "uuid": 15186412
    },
    {
      "user": "seehanah-tang",
      "count": 1,
      "uuid": 90430589
    }
  ],
  "_userbio": {
    "uuid": 124302914,
    "type": "user",
    "name": "Hannah Eglinton",
    "followers": 3
  },
  "_downloads": {
    "count": 634,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/riskscores"
  },
  "_devurl": "https://github.com/hjeglinton/riskscores",
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md",
    "extra/riskscores.html"
  ],
  "_homeurl": "https://github.com/hjeglinton/riskscores",
  "_realowner": "hjeglinton",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.2",
      "date": "2023-12-14"
    },
    {
      "version": "1.1.0",
      "date": "2024-04-16"
    },
    {
      "version": "1.1.1",
      "date": "2024-04-24"
    },
    {
      "version": "1.2.1",
      "date": "2025-05-30"
    },
    {
      "version": "1.2.3",
      "date": "2025-08-01"
    },
    {
      "version": "1.3.0",
      "date": "2026-08-24"
    },
    {
      "version": "1.3.1",
      "date": "2026-10-23"
    }
  ],
  "_authors": [
    {
      "name": "Hannah Eglinton",
      "email": "eglintonh@gmail.com",
      "role": [
        "aut",
        "cre"
      ]
    },
    {
      "name": "Seehanah Tang",
      "email": "seehanah_tang@brown.edu",
      "role": [
        "aut",
        "aut"
      ]
    },
    {
      "name": "Alice Paul",
      "email": "alice_paul@brown.edu",
      "role": [
        "aut",
        "cph"
      ]
    },
    {
      "name": "Oscar Yan",
      "email": "yu_yan@brown.edu",
      "role": [
        "aut"
      ]
    },
    {
      "name": "R Core Team",
      "role": [
        "ctb",
        "cph"
      ]
    },
    {
      "name": "Robert Gentleman",
      "role": [
        "ctb",
        "cph"
      ]
    },
    {
      "name": "Ross Ihaka",
      "role": [
        "ctb",
        "cph"
      ]
    },
    {
      "name": "Simon Davies",
      "role": [
        "ctb"
      ]
    },
    {
      "name": "Thomas Lumley",
      "role": [
        "ctb"
      ]
    }
  ],
  "_exports": [
    "%>%",
    "clip_exp_vals",
    "cv_risk_mod",
    "get_metrics",
    "get_risk",
    "get_score",
    "plot_accuracy.cv_risk_mod",
    "plot_deviance.cv_risk_mod",
    "prevalence_adjust",
    "risk_mod",
    "risk_mod_random_start",
    "stratify_folds"
  ],
  "_datasets": [
    {
      "name": "breastcancer",
      "title": "Breast tissue biopsy data",
      "object": "breastcancer",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Benign",
        "ClumpThickness",
        "UniformityOfCellSize",
        "UniformityOfCellShape",
        "MarginalAdhesion",
        "SingleEpithelialCellSize",
        "BareNuclei",
        "BlandChromatin",
        "NormalNucleoli",
        "Mitoses"
      ],
      "rows": 683,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "breastcancer",
      "title": "Breast tissue biopsy data",
      "topics": [
        "breastcancer"
      ]
    },
    {
      "page": "clip_exp_vals",
      "title": "Clip Values",
      "topics": [
        "clip_exp_vals"
      ]
    },
    {
      "page": "coef.risk_mod",
      "title": "Extract Model Coefficients",
      "topics": [
        "coef.risk_mod"
      ]
    },
    {
      "page": "cv_risk_mod",
      "title": "Run Cross-Validation to Tune Lambda0",
      "topics": [
        "cv_risk_mod"
      ]
    },
    {
      "page": "get_metrics",
      "title": "Get Model Metrics",
      "topics": [
        "get_metrics"
      ]
    },
    {
      "page": "get_metrics_internal",
      "title": "Get Model Metrics for a Single Threshold",
      "topics": [
        "get_metrics_internal"
      ]
    },
    {
      "page": "get_risk",
      "title": "Calculate Risk Probability from Score",
      "topics": [
        "get_risk"
      ]
    },
    {
      "page": "get_score",
      "title": "Calculate Score from Risk Probability",
      "topics": [
        "get_score"
      ]
    },
    {
      "page": "plot_accuracy.cv_risk_mod",
      "title": "Plot Risk Score Cross-Validation Results",
      "topics": [
        "plot_accuracy.cv_risk_mod"
      ]
    },
    {
      "page": "plot_deviance.cv_risk_mod",
      "title": "Plot Risk Score Cross-Validation Results",
      "topics": [
        "plot_deviance.cv_risk_mod"
      ]
    },
    {
      "page": "plot.cv_risk_mod",
      "title": "Plot Risk Score Cross-Validation Results",
      "topics": [
        "plot.cv_risk_mod"
      ]
    },
    {
      "page": "plot.risk_mod",
      "title": "Plot Risk Score Model Curve",
      "topics": [
        "plot.risk_mod"
      ]
    },
    {
      "page": "predict.risk_mod",
      "title": "Predict Method for Risk Model Fits",
      "topics": [
        "predict.risk_mod"
      ]
    },
    {
      "page": "prevalence_adjust",
      "title": "Adjust Predicted Probabilities for Population Prevalence",
      "topics": [
        "prevalence_adjust"
      ]
    },
    {
      "page": "randomized_rounding",
      "title": "Randomly round the initialized coefficients before coordinate descent",
      "topics": [
        "randomized_rounding"
      ]
    },
    {
      "page": "risk_mod",
      "title": "Fit an Integer Risk Score Model",
      "topics": [
        "risk_mod"
      ]
    },
    {
      "page": "risk_mod_random_start",
      "title": "Run risk model with random start",
      "topics": [
        "risk_mod_random_start"
      ]
    },
    {
      "page": "stratify_folds",
      "title": "Generate Stratified Fold IDs",
      "topics": [
        "stratify_folds"
      ]
    },
    {
      "page": "summary.risk_mod",
      "title": "Summarize Risk Model Fit",
      "topics": [
        "summary.risk_mod"
      ]
    }
  ],
  "_readme": "https://github.com/hjeglinton/riskscores/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "codetools",
    "cpp11",
    "dplyr",
    "farver",
    "foreach",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "iterators",
    "labeling",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "pROC",
    "PRROC",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "S7",
    "scales",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "riskscores.Rmd",
      "filename": "riskscores.html",
      "title": "Risk Score Vignette",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Optimization Problem",
        "Loading Example Data",
        "Data Preprocessing",
        "Cross Validation",
        "Fitting a Risk Score Model",
        "Generic Functions",
        "summary",
        "coef",
        "predict",
        "Prevalence adjustment",
        "plot"
      ],
      "created": "2023-12-05 19:18:18",
      "modified": "2026-10-23 16:26:43",
      "commits": 16
    }
  ],
  "_score": 5,
  "_indexed": true,
  "_nocasepkg": "riskscores",
  "_universes": [
    "hjeglinton"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3.1",
      "date": "2026-11-22T13:42:37.000Z",
      "distro": "resolute",
      "commit": "d77035927bdbc81020f606f52337fb4617f3ffe8",
      "fileid": "https://r2.ropensci.org/ccb66843717d1cf232c28ae2ccb7dd19952dbf65ed33d86a5c25bcc61967f550",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/45028326709"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "1.3.1",
      "date": "2026-11-22T13:42:04.000Z",
      "distro": "resolute",
      "commit": "d77035927bdbc81020f606f52337fb4617f3ffe8",
      "fileid": "https://r2.ropensci.org/15ce57cdea84b30ea8a76a2455b381f83abb89130214669563207ae4b052c608",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/45028326709"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.3.1",
      "date": "2026-11-22T13:42:38.000Z",
      "commit": "d77035927bdbc81020f606f52337fb4617f3ffe8",
      "fileid": "https://r2.ropensci.org/a34d1ab5ff4e21f19b9c925aa12db65d351901d61a7d6186374b4c67e4051a9b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/45028326709"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "1.3.1",
      "date": "2026-11-22T13:42:32.000Z",
      "commit": "d77035927bdbc81020f606f52337fb4617f3ffe8",
      "fileid": "https://r2.ropensci.org/9ee1acd95bfe50b228369acd7f2e97358b862092e7f9a3b80188ab64666e89e3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/45028326709"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.3.1",
      "date": "2026-11-22T13:41:56.000Z",
      "commit": "d77035927bdbc81020f606f52337fb4617f3ffe8",
      "fileid": "https://r2.ropensci.org/1c57276f7703aacd4b477f180c658e1adb82156f58e2b35b166203037e3756f0",
      "status": "success",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/45028326709"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3.1",
      "date": "2026-11-22T13:41:19.000Z",
      "commit": "d77035927bdbc81020f606f52337fb4617f3ffe8",
      "fileid": "https://r2.ropensci.org/38324d5a9cb8f5e8baf94d0a6b1bfbf9622d741b39ec4876aab208fa501cacdf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/45028326709"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.3.1",
      "date": "2026-11-22T13:41:14.000Z",
      "commit": "d77035927bdbc81020f606f52337fb4617f3ffe8",
      "fileid": "https://r2.ropensci.org/e96f8bea2dd8cb79909b9332d3a1b70b71eaae2da88180405ff0c0c91cb21c05",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/45028326709"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "1.3.1",
      "date": "2026-11-22T13:41:11.000Z",
      "commit": "d77035927bdbc81020f606f52337fb4617f3ffe8",
      "fileid": "https://r2.ropensci.org/d210b43d2a08c7d3610a7a7bcfa0947de5c753ca9a5aae917fbdda4c81920554",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/45028326709"
    }
  ]
}