{
  "_id": "6a12c0b6acfb0bcc41d1dcce",
  "Package": "riskscores",
  "Title": "Optimized Integer Risk Score Models",
  "Version": "1.2.3",
  "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": "2025-07-28 15:36:46 UTC",
  "RemoteUrl": "https://github.com/hjeglinton/riskscores",
  "RemoteRef": "HEAD",
  "RemoteSha": "d8bfc127fc2dbd2ab5442756afcd86bb0741d528",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-24 09:07:26 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>",
  "MD5sum": "86e7810f258eb78b3109fba8b68cee75",
  "_user": "hjeglinton",
  "_type": "src",
  "_file": "riskscores_1.2.3.tar.gz",
  "_fileid": "07c77924013393d068aa123915ea8c6d9f5254f1fb5ed4fd00e813a72412bdf1",
  "_filesize": 337341,
  "_sha256": "07c77924013393d068aa123915ea8c6d9f5254f1fb5ed4fd00e813a72412bdf1",
  "_created": "2026-05-24T09:07:26.000Z",
  "_published": "2026-05-24T09:11:18.930Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77585874407,
      "time": 132,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7183912425"
    },
    {
      "job": 77585874406,
      "time": 129,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183912080"
    },
    {
      "job": 77585874424,
      "time": 198,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7183915056"
    },
    {
      "job": 77585874416,
      "time": 149,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183911257"
    },
    {
      "job": 77585577258,
      "time": 308,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183897867"
    },
    {
      "job": 77585874405,
      "time": 108,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183909963"
    },
    {
      "job": 77585874469,
      "time": 105,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7183909625"
    },
    {
      "job": 77585874443,
      "time": 95,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7183908657"
    },
    {
      "job": 77585874456,
      "time": 90,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183908043"
    }
  ],
  "_buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/26357038545",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/hjeglinton/riskscores",
  "_commit": {
    "id": "d8bfc127fc2dbd2ab5442756afcd86bb0741d528",
    "author": "alicepaul <alice_paul@brown.edu>",
    "committer": "alicepaul <alice_paul@brown.edu>",
    "message": "Update risk_mod.R\n",
    "time": 1753717006
  },
  "_maintainer": {
    "name": "Hannah Eglinton",
    "email": "eglintonh@gmail.com",
    "login": "hjeglinton",
    "description": "",
    "uuid": 124302914
  },
  "_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": "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": "2025-22",
      "n": 9
    },
    {
      "week": "2025-28",
      "n": 2
    },
    {
      "week": "2025-29",
      "n": 1
    },
    {
      "week": "2025-31",
      "n": 4
    }
  ],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "hjeglinton",
      "count": 67,
      "uuid": 124302914
    },
    {
      "user": "alicepaul",
      "count": 16,
      "uuid": 10962581
    },
    {
      "user": "seehanahtang",
      "count": 6,
      "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"
  },
  "_downloads": {
    "count": 186,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/riskscores"
  },
  "_devurl": "https://github.com/hjeglinton/riskscores",
  "_searchresults": 13,
  "_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/riskscores.html",
    "manual.pdf"
  ],
  "_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"
    }
  ],
  "_exports": [
    "%>%",
    "clip_exp_vals",
    "cv_risk_mod",
    "get_metrics",
    "get_risk",
    "get_score",
    "plot_accuracy.cv_risk_mod",
    "plot_deviance.cv_risk_mod",
    "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": "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",
    "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",
        "plot"
      ],
      "created": "2023-12-05 19:18:18",
      "modified": "2025-05-29 14:21:43",
      "commits": 12
    }
  ],
  "_score": 5.113943352306837,
  "_indexed": true,
  "_nocasepkg": "riskscores",
  "_universes": [
    "hjeglinton"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.3",
      "date": "2026-05-24T09:09:32.000Z",
      "distro": "noble",
      "commit": "d8bfc127fc2dbd2ab5442756afcd86bb0741d528",
      "fileid": "b29c03006c4559c1f2525e7ac81f8ee887decc5e0f796d6481e0069d522862a7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/26357038545"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.3",
      "date": "2026-05-24T09:09:30.000Z",
      "distro": "noble",
      "commit": "d8bfc127fc2dbd2ab5442756afcd86bb0741d528",
      "fileid": "2d6d61d1f1ef1fbd3d92d0958a682632fa520d3fa4cdb8e57b0087d86422d4f1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/26357038545"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.3",
      "date": "2026-05-24T09:10:04.000Z",
      "commit": "d8bfc127fc2dbd2ab5442756afcd86bb0741d528",
      "fileid": "0ed87bbf8cd210ea1704f8283b9d5178d5b4aaa5f4309c7adc66f1466b1677f3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/26357038545"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2.3",
      "date": "2026-05-24T09:09:27.000Z",
      "commit": "d8bfc127fc2dbd2ab5442756afcd86bb0741d528",
      "fileid": "8df953b9a4c9aa664a61c94f135f3f34a0c16fea373a86cd5b2f1854e8611193",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/26357038545"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.3",
      "date": "2026-05-24T09:09:33.000Z",
      "commit": "d8bfc127fc2dbd2ab5442756afcd86bb0741d528",
      "fileid": "aa12828125809eb45ae071bb5e3357619a1f1bcd37f343638b764ca257a27ebf",
      "status": "success",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/26357038545"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.3",
      "date": "2026-05-24T09:08:57.000Z",
      "commit": "d8bfc127fc2dbd2ab5442756afcd86bb0741d528",
      "fileid": "de3b2d1ddab1a4de8fb1965b1472e1122b089544d47408f3c36ad8455b73f619",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/26357038545"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.3",
      "date": "2026-05-24T09:08:49.000Z",
      "commit": "d8bfc127fc2dbd2ab5442756afcd86bb0741d528",
      "fileid": "ddd970f6561010a94b65edc3aec17dab814e91e9bf3676eeb6234c7799ef231d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/26357038545"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.2.3",
      "date": "2026-05-24T09:08:38.000Z",
      "commit": "d8bfc127fc2dbd2ab5442756afcd86bb0741d528",
      "fileid": "c4e49467ebc365f8f760942fed6bfb1bd44696383fd5f3e07750a29830cead52",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/26357038545"
    }
  ]
}