blandr

blandr: a Bland-Altman Method Comparison package for R

https://github.com/deepankardatta/blandr

Science Score: 33.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
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
    1 of 5 committers (20.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (19.1%) to scientific vocabulary

Keywords

bland-altman ggplot2 method-comparison r statistics
Last synced: 6 months ago · JSON representation

Repository

blandr: a Bland-Altman Method Comparison package for R

Basic Info
  • Host: GitHub
  • Owner: deepankardatta
  • Language: R
  • Default Branch: master
  • Homepage:
  • Size: 24.5 MB
Statistics
  • Stars: 22
  • Watchers: 2
  • Forks: 11
  • Open Issues: 13
  • Releases: 7
Topics
bland-altman ggplot2 method-comparison r statistics
Created over 8 years ago · Last pushed over 1 year ago
Metadata Files
Readme

README.Rmd

---
output: github_document
---



```{r, echo = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)
```

# blandr: a Bland-Altman Method Comparison package for R

*blandr* carries out Bland Altman analyses (also known as a Tukey mean-difference plot) as described by JM Bland and DG Altman in 1986. This package was started in 2015 as existing Bland-Altman R functions did not calculate confidence intervals. *blandr* has been improved iteratively over time, and hopefully will be useful as an open-source library for reproducible science.

## The benefits

* Calculates and plots confidence intervals
* Outputs ggplot2 information to create extensible plots
* Associated Jamovi module, allowing researchers and users uncomfortable with command line tools to use a graphical user interface
* Shiny/rmarkdown-based automatic report generating function
* Developing functions to chart for proportional bias
* Open source and on GitHub - anyone can contribute and extend the library

# Citations

You can find the citation information through the usual R citation commands:
```{r, eval = FALSE}
citation("blandr")
```

The DOI will refer to all versions of blandr. If you need to cite specific releases DOIs, the full versioning information can be found at Zenodo (https://zenodo.org/record/824514), with the full source code at the blandr GitHub page (https://github.com/deepankardatta/blandr/).

## Installation

blandr is available as a package from CRAN and can be installed with the following commands:

```{r gh-installation, eval = FALSE}
install.packages("blandr")
library(blandr)
```

You can install the blandr development version, hosted on github at https://github.com/deepankardatta/blandr/, with the following commands:

```{r, eval = FALSE}
install.packages("devtools")
devtools::install_github("deepankardatta/blandr")
```

## Example

This is a basic example which shows you how to solve a common problem:

```{r, eval = FALSE}
library(blandr)
load(file="Data/bland.altman.PEFR.1986.rda")
blandr.display ( bland.altman.PEFR.1986$WrightFirst , bland.altman.PEFR.1986$MiniWrightFirst , sig.level=0.95 )
blandr.draw( bland.altman.PEFR.1986$WrightFirst , bland.altman.PEFR.1986$MiniWrightFirst )
```

## The Jamovi module

One of the benefits of *blandr* is that the library has been developed so a module can be generated for the Jamovi GUI statistical spreadsheet (https://www.jamovi.org/). I'm a believer in making this tool more accessible, and Jamovi is a way to do this. The Jamovi module will also be iteratively developed - the code for each Jamovi version is linked to the CRAN version on GitHub. The module will be on the Jamovi library.

If you want to use the development versions of *blandr*, you can install Jamovi from the command line using the following commands:

```{r, eval = FALSE}
install.packages('jmvtools', repos=c('https://repo.jamovi.org', 'https://cran.r-project.org'))
library(jmvtools)
jmvtools::install()
```

You can then download the *blandr* GitHub development branch and install it to Jamovi from the command line.

## Why the odd name?

Thinking of a unique name was difficult - if you look through the history of the sources the package had a very 	cumbersome name. This had to change when uploading to CRAN as it seemed to be frowned upon.

Hadley Wickham has an excellent set of documentation on creating packages. The one on naming (http://r-pkgs.had.co.nz/package.html) is worth a read. Reflecting on it a lot of the naming issues are to prevent collisions with similarly named packages, so using *blandaltman* in the name might have cause problems. Mirroring the pre-existing *plyr* and *knitr* I thought I'd just add a "r" to "bland": yes it doesn't involve Altman's name, but I couldn't think of anything better.

If you can think of a better name please let me know!

## Further information

Further information can be found in the function help files in the package, as well as in the vignettes.

## System Requirements
The library is quite small, and mostly depends on the ggplot2 library. However the report functions do require rmarkdown, knitr, and most importantly pandoc - the function should check this is available and stop gracefully if not. Further the Jamovi based functions need the Jamovi library to work.

## Future improvements

Whilst this package is good enough for use, there is the scope for iterative improvements.

Future works include:

* There are a further few deprecated functions to delete (I just need to finish a few projects first!!).
* The package needs to have to go through some validation and testing
* For further testing I need to write some *testthat* modules
* The function descriptions needs to be improved
* Some of the roxygen2 documentation can be improved by calling the import parameters function
* I want to add a few more sample data packs: including some of my own if possible
* Development of a report generator
* Further development of the Jamovi module

## Help wanted!

Comments on the code, suggestions for improvement, verification tests, validation studies, and even code contributions would be gratefully accepted. Email me at deepankar(dot)datta(at)gmail.com and I'll try and get back to you as soon as possible. Please do bear in mind this is a side-project, and I can be otherwise busy with a lot of other work.

Owner

  • Name: Deepankar Datta
  • Login: deepankardatta
  • Kind: user

GitHub Events

Total
  • Watch event: 2
  • Issue comment event: 1
Last Year
  • Watch event: 2
  • Issue comment event: 1

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 95
  • Total Committers: 5
  • Avg Commits per committer: 19.0
  • Development Distribution Score (DDS): 0.505
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Deepankar Datta d****a@n****t 47
Deepankar Datta d****a 27
Jonathon Love j****n@t****c 9
SvenHeimbuch s****h@u****e 7
James Curran j****n@a****z 5
Committer Domains (Top 20 + Academic)

Packages

  • Total packages: 1
  • Total downloads:
    • cran 829 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 2
  • Total versions: 4
  • Total maintainers: 1
cran.r-project.org: blandr

Bland-Altman Method Comparison

  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 2
  • Downloads: 829 Last month
Rankings
Forks count: 5.8%
Stargazers count: 13.3%
Average: 17.1%
Downloads: 18.4%
Dependent repos count: 19.3%
Dependent packages count: 28.8%
Maintainers (1)
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.2.0 depends
  • R6 * imports
  • ggplot2 * imports
  • glue * imports
  • jmvcore >= 0.8.5 imports
  • knitr * imports
  • rmarkdown * imports
  • stringr * imports
  • testthat * suggests
.github/workflows/rhub.yaml actions
  • r-hub/actions/checkout v1 composite
  • r-hub/actions/platform-info v1 composite
  • r-hub/actions/run-check v1 composite
  • r-hub/actions/setup v1 composite
  • r-hub/actions/setup-deps v1 composite
  • r-hub/actions/setup-r v1 composite