Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.6%) to scientific vocabulary
Keywords
Repository
Interpret effects and visualise uncertainty
Basic Info
- Host: GitHub
- Owner: inbo
- License: gpl-3.0
- Language: R
- Default Branch: main
- Homepage: https://inbo.github.io/effectclass
- Size: 5.14 MB
Statistics
- Stars: 6
- Watchers: 7
- Forks: 1
- Open Issues: 1
- Releases: 2
Topics
Metadata Files
README.md
effectclass
The effectclass package helps interpreting effects and visualising uncertainty.
It classifies the effects by comparing a coverage interval with a reference, lower and upper threshold. The result is a 10 scale classification of the effect. You can reduced it to a 4 scale classification. effectclass provides stat_effect() and scale_effect() to visualise the effects as points with different shapes.
The Bank of England visualises uncertainty by using a fan plot^[Britton, E.; Fisher, P. & J. Whitley (1998). The Inflation Report Projections: Understanding the Fan Chart. Bank of England Quarterly Bulletin. Retrieved 2019-05-22.]. Instead of displaying a single coverage interval, they recommend to display a bunch of coverage intervals with different levels of transparency.
Installation
You can install the released version of effectclass from GitHub with:
``` r
installation requires the "remotes" package
install.package("remotes")
remotes::install_github("inbo/effectclass") ```
Example
Classifying effect for usage in a table
r
library(effectclass)
z <- data.frame(
effect = c("unknown\neffect", "potential\npositive\neffect",
"potential\nnegative\neffect", "no effect", "positive\neffect",
"negative\neffect", "moderate\npositive\neffect",
"moderate\nnegative\neffect", "strong\npositive\neffect",
"strong\nnegative\neffect"),
estimate = c( 0, 0, 0, 0, 1, -1, 0.5, -0.5, 1.5, -1.5),
lcl = c(-2, -0.9, -2, -0.9, 0.1, -2, 0.1, -0.9, 1.1, -2),
ucl = c( 2, 2, 0.9, 0.9, 2, -0.1, 0.9, -0.1, 2, -1.1)
)
classification(z$lcl, z$ucl, threshold = c(-1, 1), reference = 0)
Adding a classification to a plot
r
library(ggplot2)
ggplot(z, aes(x = effect, y = estimate, ymin = lcl, ymax = ucl)) +
stat_effect(threshold = c(-1, 1), reference = 0, size = 3)
Creating a fan plot
r
z <- data.frame(year = 1990:2019, dx = rnorm(30), s = rnorm(30, 1, 0.05))
z$index <- cumsum(z$dx)
library(ggplot2)
ggplot(z, aes(x = year, y = index, link_sd = s)) + stat_fan() + geom_line()
Owner
- Name: Research Institute for Nature and Forest (INBO)
- Login: inbo
- Kind: organization
- Location: Belgium
- Website: http://www.inbo.be/en
- Repositories: 125
- Profile: https://github.com/inbo
Open source, data and science initiatives of the Research Institute for Nature and Forest (INBO)
Citation (CITATION.cff)
cff-version: 1.2.0 message: If you use this software, please cite it using these metadata. title: "effectclass: Classification and Visualisation of Effects" authors: - given-names: Thierry family-names: Onkelinx affiliation: Research Institute for Nature and Forest (INBO) orcid: 0000-0001-8804-4216 keywords: - classification - effect size - uncertainty - visualisation contact: - given-names: Thierry family-names: Onkelinx affiliation: Research Institute for Nature and Forest (INBO) orcid: 0000-0001-8804-4216 doi: ~ license: GPL-3.0 repository-code: https://github.com/inbo/effectclass/ type: software abstract: "Classify effects by comparing the confidence intervals with thresholds." identifiers: - type: url value: https://inbo.github.io/effectclass/ version: 0.1.5
GitHub Events
Total
- Push event: 4
- Create event: 1
Last Year
- Push event: 4
- Create event: 1
Issues and Pull Requests
Last synced: over 1 year ago
All Time
- Total issues: 1
- Total pull requests: 18
- Average time to close issues: N/A
- Average time to close pull requests: 3 months
- Total issue authors: 1
- Total pull request authors: 4
- Average comments per issue: 0.0
- Average comments per pull request: 0.67
- Merged pull requests: 16
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: 4 months
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- wlangera (1)
Pull Request Authors
- ThierryO (11)
- hansvancalster (4)
- florisvdh (2)
- wlangera (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- R >= 2.10 depends
- assertthat * imports
- ggplot2 * imports
- knitr * suggests
- rmarkdown * suggests
- testthat * suggests