{"id":15801053,"url":"https://github.com/sempwn/overdose-model-intro","last_synced_at":"2025-08-03T22:36:59.554Z","repository":{"id":98180309,"uuid":"166862676","full_name":"sempwn/overdose-model-intro","owner":"sempwn","description":"Introduction to Bayesian hierarchical model of overdoses","archived":false,"fork":false,"pushed_at":"2019-01-24T14:03:08.000Z","size":3114,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-12T01:22:34.369Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sempwn.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}},"created_at":"2019-01-21T18:44:00.000Z","updated_at":"2024-03-12T21:31:38.000Z","dependencies_parsed_at":"2023-06-29T20:31:52.528Z","dependency_job_id":null,"html_url":"https://github.com/sempwn/overdose-model-intro","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.11111111111111116","last_synced_commit":"1ca51aa54268a80567d4209ff7a08f01cf9682a4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sempwn/overdose-model-intro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sempwn%2Foverdose-model-intro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sempwn%2Foverdose-model-intro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sempwn%2Foverdose-model-intro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sempwn%2Foverdose-model-intro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sempwn","download_url":"https://codeload.github.com/sempwn/overdose-model-intro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sempwn%2Foverdose-model-intro/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263586002,"owners_count":23484494,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-05T01:09:19.380Z","updated_at":"2025-07-04T17:12:08.198Z","avatar_url":"https://github.com/sempwn.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# overdose-model-intro\n\nIntroduction to Bayesian hierarchical model of opioid-related overdoses\n\n## Background\n\n![Model diagram](https://ars.els-cdn.com/content/image/1-s2.0-S2468266718300446-gr1.jpg)\n\nThis repo provides a notebook in order to learn and develop a mathematical model describing a population at risk of an opioid overdose and intervention through the use of *take-home naloxone* (THN) kits.\n\nFor description of model see supplementary materials in [Irvine, Michael A., et al. *Distribution of take-home opioid antagonist kits during a synthetic opioid epidemic in British Columbia, Canada: a modelling study.* The Lancet Public Health 3.5 (2018): e218-e225.](https://doi.org/10.1016/S2468-2667%2818%2930044-6)\n\n## Getting started\n\nThese instructions will get you a copy of the notebook up and running on your local machine.\n\n### Prerequisites\n\nThe easiest way to get up and running is to install [Anaconda](https://www.anaconda.com/download/_), which provides `python`, numerous scientific libraries as well as `jupyter`. Once [Anaconda](https://www.anaconda.com/download/) is installed, navigate to directory for this repository and run `jupyter` via the command line (using the example directory `/Projects/Tutorial/`):\n\n```bash\ncd  /Projects/Tutorial/\njupyter notebook\n```\nYou can also launch `jupyter` through the [Anaconda Navigator](https://www.anaconda.com/distribution/#feature-desktop-gui).\n\n### Installing\n\nThe repository requires the library [pymc3](https://pymc3.readthedocs.io/en/latest/_) to run. To install open a terminal (can be done in a notebook session) and run the following command:\n\n```bash\nconda install -c conda-forge pymc3\n```\n\nFor plotting install the package [seaborn](https://seaborn.pydata.org) using the following command\n\n```bash\nconda install -c anaconda seaborn\n```\n\n### Opening notebook\n\nOnce the jupyter session is running navigate to the notebook [model_introduction.ipynb](model_introduction.ipynb)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsempwn%2Foverdose-model-intro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsempwn%2Foverdose-model-intro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsempwn%2Foverdose-model-intro/lists"}