{
  "_id": "6ad5c6797f75c4fbd3a1e5c2",
  "Package": "riskscores",
  "Title": "Optimized Integer Risk Score Models",
  "Version": "1.3.0",
  "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-19 05:25:56 UTC",
  "RemoteUrl": "https://github.com/hjeglinton/riskscores",
  "RemoteRef": "HEAD",
  "RemoteSha": "52939f28982a1c77e98ad63198ece4b3b2e79882",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-19 07:10:22 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.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/4686e0ff8dfa5f1dc205381e2b8aa7ef1a12f27a67031958dec7cbbb5d7c5526",
  "_filesize": 311836,
  "_sha256": "4686e0ff8dfa5f1dc205381e2b8aa7ef1a12f27a67031958dec7cbbb5d7c5526",
  "_expires": "2027-01-27T07:27:52.000Z",
  "_created": "2026-10-19T07:10:22.000Z",
  "_published": "2026-10-19T07:27:53.667Z",
  "_buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/39213822222",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 117934514886,
      "time": 124,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12168439965"
    },
    {
      "job": 117934515009,
      "time": 128,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12168274158"
    },
    {
      "job": 117934514929,
      "time": 207,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12169034493"
    },
    {
      "job": 117934514989,
      "time": 150,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12169617192"
    },
    {
      "job": 117933073918,
      "time": 253,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12168517806"
    },
    {
      "job": 117934514925,
      "time": 110,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12168529640"
    },
    {
      "job": 117934514964,
      "time": 90,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12168773416"
    },
    {
      "job": 117934514995,
      "time": 89,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12169221257"
    },
    {
      "job": 117934514979,
      "time": 105,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12169295628"
    }
  ],
  "_upstream": "https://github.com/hjeglinton/riskscores",
  "_commit": {
    "id": "52939f28982a1c77e98ad63198ece4b3b2e79882",
    "author": "seehanahtang <seehanahtang1029@gmail.com>",
    "committer": "seehanahtang <seehanahtang1029@gmail.com>",
    "message": "rename lambda_1se to lambda_1sd, fix predict scores, weight residual glm\n",
    "time": 1792387556
  },
  "_maintainer": {
    "name": "Hannah Eglinton",
    "email": "eglintonh@gmail.com",
    "login": "hjeglinton",
    "description": "",
    "uuid": 124302914
  },
  "_distro": "resolute",
  "_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": 3
    }
  ],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "hjeglinton",
      "count": 69,
      "uuid": 124302914
    },
    {
      "user": "alicepaul",
      "count": 17,
      "uuid": 10962581
    },
    {
      "user": "seehanahtang",
      "count": 10,
      "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": 368,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/riskscores"
  },
  "_devurl": "https://github.com/hjeglinton/riskscores",
  "_searchresults": 16,
  "_rbuild": "4.6.1",
  "_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"
    }
  ],
  "_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-19 05:25:56",
      "commits": 15
    }
  ],
  "_score": 5.204119982655925,
  "_indexed": true,
  "_nocasepkg": "riskscores",
  "_universes": [
    "hjeglinton"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3.0",
      "date": "2026-10-19T07:12:26.000Z",
      "distro": "resolute",
      "commit": "52939f28982a1c77e98ad63198ece4b3b2e79882",
      "fileid": "https://r2.ropensci.org/a37ce23fc0e661964f343eaab59c7e53abba6fbd16e6e6c00e1e906694efa55b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/39213822222"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.3.0",
      "date": "2026-10-19T07:14:19.000Z",
      "distro": "resolute",
      "commit": "52939f28982a1c77e98ad63198ece4b3b2e79882",
      "fileid": "https://r2.ropensci.org/298ced2ada2471cc5c2af0972445bae8b1d188d1dd1f0375503dbeb945cd2a62",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/39213822222"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.3.0",
      "date": "2026-10-19T07:26:32.000Z",
      "commit": "52939f28982a1c77e98ad63198ece4b3b2e79882",
      "fileid": "https://r2.ropensci.org/81ed47d439229a816fa62b0d76b80fc5901855c325df94f4f575b8249dceba6e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/39213822222"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.3.0",
      "date": "2026-10-19T07:25:49.000Z",
      "commit": "52939f28982a1c77e98ad63198ece4b3b2e79882",
      "fileid": "https://r2.ropensci.org/3c5f3cd1296a6b0e6584acf0d944eecf106b5bf851c1ef12af319ac07731b245",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/39213822222"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.3.0",
      "date": "2026-10-19T07:12:32.000Z",
      "commit": "52939f28982a1c77e98ad63198ece4b3b2e79882",
      "fileid": "https://r2.ropensci.org/9ae2849ba7322575738ecab4c5ff73502fba10b102ac44530fcbce3c26df08ef",
      "status": "success",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/39213822222"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-10-19T07:11:36.000Z",
      "commit": "52939f28982a1c77e98ad63198ece4b3b2e79882",
      "fileid": "https://r2.ropensci.org/87220f8e1e5126402548300c33dc795eb5d62d0931b5b242426d0badbab15ba1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/39213822222"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-10-19T07:11:37.000Z",
      "commit": "52939f28982a1c77e98ad63198ece4b3b2e79882",
      "fileid": "https://r2.ropensci.org/7394d749f146350beb56b0cca19b577eeb028addfff1bce53c22406ca19b6974",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/39213822222"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.3.0",
      "date": "2026-10-19T07:11:56.000Z",
      "commit": "52939f28982a1c77e98ad63198ece4b3b2e79882",
      "fileid": "https://r2.ropensci.org/04e851994ba79cb05c017a7bc28dd2735101f986e63e62acca7b44fb8bf1222e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hjeglinton/actions/runs/39213822222"
    }
  ]
}