{"id":44259137,"url":"https://github.com/dark-peak-analytics/heconpack","last_synced_at":"2026-02-10T16:41:54.478Z","repository":{"id":165912300,"uuid":"626324162","full_name":"dark-peak-analytics/HECONpack","owner":"dark-peak-analytics","description":"Example R package for a health economic model","archived":false,"fork":false,"pushed_at":"2023-09-21T13:16:16.000Z","size":62,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-11T10:04:55.603Z","etag":null,"topics":["hta","rprogramming"],"latest_commit_sha":null,"homepage":"https://darkpeakanalytics.com/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dark-peak-analytics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-04-11T08:36:12.000Z","updated_at":"2025-06-26T03:58:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"63f014af-cdcc-4ec1-a367-2f066d4ad334","html_url":"https://github.com/dark-peak-analytics/HECONpack","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dark-peak-analytics/HECONpack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dark-peak-analytics%2FHECONpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dark-peak-analytics%2FHECONpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dark-peak-analytics%2FHECONpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dark-peak-analytics%2FHECONpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dark-peak-analytics","download_url":"https://codeload.github.com/dark-peak-analytics/HECONpack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dark-peak-analytics%2FHECONpack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29307926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T16:09:25.305Z","status":"ssl_error","status_checked_at":"2026-02-10T16:08:52.170Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hta","rprogramming"],"created_at":"2026-02-10T16:41:53.589Z","updated_at":"2026-02-10T16:41:54.469Z","avatar_url":"https://github.com/dark-peak-analytics.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HECONpack \u003cimg src=\"https://user-images.githubusercontent.com/41961614/231161592-ef708d04-cc3f-4bec-95a4-70d0635c166c.png\" align=\"right\" width=\"120\" /\u003e\n\nThis repository houses R package `HECONpack` created in the tutorial section of the working paper:\n\n\u003e Smith R, Mohammed W and Schneider P. Packaging cost-effectiveness models in R: A tutorial. version 1; peer review: awaiting peer review. Wellcome Open Res 2023, 8:419 [https://doi.org/10.12688/wellcomeopenres.19656.1](https://doi.org/10.12688/wellcomeopenres.19656.1)\n\n\n# **Packaging cost-effectiveness models in R: A tutorial**\n\n[Robert Smith](https://www.linkedin.com/in/robert-smith-53b28438)\u003csup\u003e1,2\u003c/sup\u003e, Wael Mohammed\u003csup\u003e1,2\u003c/sup\u003e \u0026 Paul Schneider\u003csup\u003e1,2\u003c/sup\u003e\n\n\u003csup\u003e1\u003c/sup\u003e [University of Sheffield](https://www.sheffield.ac.uk/scharr), University of Sheffield, Sheffield, UK   \n\u003csup\u003e2\u003c/sup\u003e [Dark Peak Analytics](https://darkpeakanalytics.com/), Sheffield, UK\n\n\u003e#### **Background**\n\u003e\n\u003eThe use of programming languages such as R in health economics and decision science is increasing, and brings numerous benefits including increas- ing model development efficiency, improving transparency, and reducing human error. However, there is limited guidance on how to best develop models using R. So far, no clear consensus has emerged.\n\u003e\n\u003e#### **Methods**\n\u003e\n\u003eWe present the advantages of creating health economic models as R packages - structured collections of functions, data sets, tests, and documentation. Assuming an intermediate understanding of R, we provide a tutorial to demonstrate how to construct a basic R package for health economic evaluation. All source code used in or referenced by this paper is available under an open source licence.\n\u003e\n\u003e#### **Results**\n\u003e\n\u003eWe use the Sick Sicker Model as a case study applying the steps from the tutorial to standardise model development, documentation and aid review. This can improve the distribution of code, thereby streamlining model development, and improve methods in health economic evaluation.\n\u003e\n\u003e#### **Conclusions**\n\u003e\n\u003eR Packages offer a valuable framework for enhancing the quality and transparency of health economic evaluation models. Embracing better, more standardised software development practices, while fostering a collaborative culture, has the potential to significantly improve the quality of health economic models, and, ultimately, support better decision making in healthcare.\n\n## Installation\n\nTo test the functionality of this package, install the development version of the package using the devtools package.\n\n``` r\ndevtools::install_github(\"dark-peak-analytics/HECONpack\")\n```\n\n## Quick start\n\n### Load the package.\n\n``` r\nlibrary(HECONpack)\n```\n\n### Example function use\n\nUse the `calcICER` function below to calculate the ICER given a set of expected outcomes.\n\n``` r\ncalcICER(e_int = 28.3, e_base = 22.5, c_int = 10000, c_base = 9200)\n```\n\n## Cloning the repository\n\n1. Make sure you have RStudio installed.\n2. Clone this repository via the IDE or the command line with `git clone https://github.com/dark-peak-analytics/HECONpack.git`\n3. Open `HECONpack.Rproj` in RStudio\n\n### Contents\n\nThis repository is structured in the standard R Package structure.\n\n- `.Rbuildignore` files to ignore when building Package.\n- `.gitignore` files ignored by git.\n- `DESCRIPTION` metadata, e.g. name and version.\n- `NAMESPACE` from Roxygen, ensures names dependencies etc..\n- `R/` R functions.\n- `man/` md files documenting for functions.\n- `data` data available within Package.\n- `vignettes/` .Rmd files used to showcase Package functionality.\n- `tests/` unit tests designed to ensure code works as intended.\n\nFor more guidance on Package setup more generally please refer to \u003chttps://r-pkgs.org/setup.html\u003e.\n\n## Funding\nRob, Wael \u0026 Paul were joint funded by the Wellcome Trust Doctoral Training Centre in Public Health Economics and Decision Science [108903] and the University of Sheffield. They now all work for [Dark Peak Analytics](https://www.darkpeakanalytics.com). Please contact \u003crasmith3@sheffield.ac.uk\u003e with any queries.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdark-peak-analytics%2Fheconpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdark-peak-analytics%2Fheconpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdark-peak-analytics%2Fheconpack/lists"}