episensr
Basic sensitivity analysis of epidemiological results in R: Moved to codeberg.org/dhaine/episensr
Science Score: 36.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
✓DOI references
Found 3 DOI reference(s) in README -
✓Academic publication links
Links to: pubmed.ncbi, ncbi.nlm.nih.gov, zenodo.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (18.9%) to scientific vocabulary
Keywords
bias
cran
epidemiology
r
r-package
sensitivity-analysis
statistics
Last synced: 6 months ago
·
JSON representation
Repository
Basic sensitivity analysis of epidemiological results in R: Moved to codeberg.org/dhaine/episensr
Basic Info
- Host: GitHub
- Owner: dhaine
- Language: R
- Default Branch: main
- Homepage: https://codeberg.org/dhaine/episensr
- Size: 12.3 MB
Statistics
- Stars: 13
- Watchers: 2
- Forks: 1
- Open Issues: 0
- Releases: 15
Archived
Topics
bias
cran
epidemiology
r
r-package
sensitivity-analysis
statistics
Created almost 11 years ago
· Last pushed 10 months ago
Metadata Files
Readme
README.Rmd
---
output:
github_document
---
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
# episensr
[](https://github.com/dhaine/episensr/actions/workflows/check-standard.yaml)
[](https://cran.r-project.org/package=episensr)
[](https://doi.org/10.5281/zenodo.8299430)
[](https://app.codecov.io/gh/dhaine/episensr/tree/master)
[](https://www.repostatus.org/#active)
[](https://cran.r-project.org/package=episensr)
The R package **episensr** allows to do basic sensitivity analysis of
epidemiological results as described in **Applying Quantitative Bias Analysis to
Epidemiological Data** by Timothy L. Lash, Matthew P. Fox, and Aliza K. Fink
(ISBN: 978-0-387-87960-4,
[bias.analysis](https://sites.google.com/site/biasanalysis/)).
## License
This package is free and open source software, licensed under GPL2.
## Citation
To cite **episensr**, please use:
```{r}
citation("episensr")
```
## Example
We will use a case-control study by
[Stang et al.](https://pubmed.ncbi.nlm.nih.gov/16523014/) on the relation
between mobile phone use and uveal melanoma.
The observed odds ratio for the association between regular mobile phone use vs.
no mobile phone use with uveal melanoma incidence is 0.71 [95% CI 0.51-0.97].
But there was a substantial difference in participation rates between cases and
controls (94% vs 55%, respectively) and so selection bias could have an impact
on the association estimate.
The 2X2 table for this study is the following:
| | regular use | no use |
|----------|-------------|--------|
| cases | 136 | 107 |
| controls | 297 | 165 |
We use the function `selection` as shown below.
```{r}
library(episensr)
selection(matrix(c(136, 107, 297, 165),
dimnames = list(c("UM+", "UM-"), c("Mobile+", "Mobile-")),
nrow = 2, byrow = TRUE),
bias_parms = c(.94, .85, .64, .25))
```
The 2X2 table is provided as a matrix and selection probabilities given with the
argument `bias_parms`, a vector with the 4 probabilities (guided by the participation
rates in cases and controls) in the following order: among cases exposed, among
cases unexposed, among noncases exposed, and among noncases unexposed.
The output shows the observed 2X2 table, the observed odds ratio (and relative
risk) followed by the corrected ones.
## Installation
You can get the latest release from **CRAN**:
```{r, eval=FALSE}
install.packages('episensr')
```
Or install the development version from **GitHub** with **devtools** package:
```{r, eval=FALSE}
#install.packages("remotes")
remotes::install_github('dhaine/episensr', ref = "develop")
```
Owner
- Name: Denis Haine
- Login: dhaine
- Kind: user
- Location: Montréal, QC
- Website: https://framapiaf.org/@epivet
- Repositories: 35
- Profile: https://github.com/dhaine
GitHub Events
Total
- Watch event: 2
- Issue comment event: 2
- Push event: 7
- Pull request event: 2
- Fork event: 1
- Create event: 2
Last Year
- Watch event: 2
- Issue comment event: 2
- Push event: 7
- Pull request event: 2
- Fork event: 1
- Create event: 2
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Denis Haine | d****e@g****m | 565 |
| Codie Wood | 5****d | 1 |
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 1
- Total pull requests: 2
- Average time to close issues: about 21 hours
- Average time to close pull requests: 4 days
- Total issue authors: 1
- Total pull request authors: 2
- Average comments per issue: 2.0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- fionac44 (1)
Pull Request Authors
- teunbrand (1)
Top Labels
Issue Labels
bug (1)
Pull Request Labels
Dependencies
DESCRIPTION
cran
- R >= 3.6.0 depends
- ggplot2 >= 3.3.3 depends
- actuar * imports
- boot * imports
- dagitty * imports
- ggdag * imports
- magrittr * imports
- trapezoid * imports
- triangle * imports
- aplore3 * suggests
- covr * suggests
- directlabels * suggests
- knitr * suggests
- lattice * suggests
- rmarkdown * suggests
- testthat * suggests
- tidyverse * suggests