{
  "_id": "6a3a4c5d6265ec60d620d755",
  "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-06-23 09:02:02 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": "6fdaac34a42d85bc672161bfb310872f",
  "_user": "hjeglinton",
  "_type": "src",
  "_file": "riskscores_1.2.3.tar.gz",
  "_fileid": "dcc703499e2bab97bd5129f8b69f8af9d37835ad3243c2700938c3762cea36c9",
  "_filesize": 337032,
  "_sha256": "dcc703499e2bab97bd5129f8b69f8af9d37835ad3243c2700938c3762cea36c9",
  "_created": "2026-06-23T09:02:02.000Z",
  "_published": "2026-06-23T09:05:33.457Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 82916551362,
      "time": 116,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7816233561"
    },
    {
      "job": 82916551351,
      "time": 117,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7816234028"
    },
    {
      "job": 82916551294,
      "time": 154,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7816240081"
    },
    {
      "job": 82916551333,
      "time": 179,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7816243531"
    },
    {
      "job": 82915614436,
      "time": 294,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7816188861"
    },
    {
      "job": 82916551321,
      "time": 135,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7816236993"
    },
    {
      "job": 82916551396,
      "time": 98,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7816226918"
    },
    {
      "job": 82916551344,
      "time": 115,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7816233322"
    },
    {
      "job": 82916551500,
      "time": 101,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7816227879"
    }
  ],
  "_buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/28014551879",
  "_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-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",
    "followers": 3
  },
  "_downloads": {
    "count": 238,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/riskscores"
  },
  "_devurl": "https://github.com/hjeglinton/riskscores",
  "_searchresults": 14,
  "_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.021189299069938,
  "_indexed": true,
  "_nocasepkg": "riskscores",
  "_universes": [
    "hjeglinton"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.3",
      "date": "2026-06-23T09:03:50.000Z",
      "distro": "noble",
      "commit": "d8bfc127fc2dbd2ab5442756afcd86bb0741d528",
      "fileid": "18efbe9ebb0277f7bde366c319b10236d1b9a27eb6891e4bf7e8a063401cdf04",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/28014551879"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.3",
      "date": "2026-06-23T09:03:49.000Z",
      "distro": "noble",
      "commit": "d8bfc127fc2dbd2ab5442756afcd86bb0741d528",
      "fileid": "7ba1f93691922eaf6610f21422c7bb4d7af1b126e8a3bb51e641f98e8335ee0c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/28014551879"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.3",
      "date": "2026-06-23T09:04:14.000Z",
      "commit": "d8bfc127fc2dbd2ab5442756afcd86bb0741d528",
      "fileid": "4275d132fa33e1492af41bc021ad3b9341716b56d52bf877df461e63552e1822",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/28014551879"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2.3",
      "date": "2026-06-23T09:04:18.000Z",
      "commit": "d8bfc127fc2dbd2ab5442756afcd86bb0741d528",
      "fileid": "ea8e58fade1b75621f95d13be53bb0ef58bccb46121938ae04832834094a31b0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/28014551879"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.3",
      "date": "2026-06-23T09:04:22.000Z",
      "commit": "d8bfc127fc2dbd2ab5442756afcd86bb0741d528",
      "fileid": "1ed06b6a9e5be3bdf0177521ba230b751578d5b7c244722c09386a173d1c6e24",
      "status": "success",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/28014551879"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.3",
      "date": "2026-06-23T09:03:23.000Z",
      "commit": "d8bfc127fc2dbd2ab5442756afcd86bb0741d528",
      "fileid": "1b5808a26d6b674975a1886c772a914e6a39834058c6da1c9999c41af67fca28",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/28014551879"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.3",
      "date": "2026-06-23T09:03:36.000Z",
      "commit": "d8bfc127fc2dbd2ab5442756afcd86bb0741d528",
      "fileid": "8d706e5f72b6efd75ca0f89146b25f43fbf116c2dd046f058e30352c6dd3ff38",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/28014551879"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.2.3",
      "date": "2026-06-23T09:03:19.000Z",
      "commit": "d8bfc127fc2dbd2ab5442756afcd86bb0741d528",
      "fileid": "842462ce220a210d961ef075a135e9bec27ba166acdba3c9c198d114b82fd532",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/28014551879"
    }
  ]
}