Aaron R. Caldwell^1,2^

  1. United States Army Research Institute of Environmental Medicine, Natick, MA.
  2. Oak Ridge Institute of Science and Education, Oak Ridge, TN.

Summary

Accurate and reliable measurements are critical to quantitative research efforts. Based on citation counts, researchers highly value methods to quantify the accuracy and reliability of the measurement tools [@bland1986; @weir2005]. This article introduces the SimplyAgree R package and jamovi module as user-friendly solutions for estimating agreement and reliability [@R-base; @jamovi].

Statement of Need

A number of new methods have been developed in the past three decades to improve the calculation of the limits of agreement [@shieh2019; @lin1989; @zou2011] and other measures of measurement reliability [@weir2005; @carrasco2013]. However, to author's best knowledge, statistical software — particularly open source software — to implement these statistical analyses is lacking. While some software may provide the limits of agreement analysis outlined by Bland & Altman [-@bland1986; -@bland1999], few, if any, account for multiple observations within the same research subject [@zou2011] or include hypothesis tests of agreement [@shieh2019]. Many researchers may not have the skills necessary to write the code, from scratch, in order to implement many of the newest techniques. @jamovi is a open source statistical platform that provides a graphical user interface (GUI), and therefore is an accessible source for researchers without coding experience. Therefore, a jamovi module of SimplyAgree was also created in order to reach those researchers who may not have the coding expertise required to effectively use the R package.

Current R Capabilities

The R package SimplyAgree, currently v0.0.2 on the comprehensive R archive network (CRAN), implements a number of useful agreement and reliability analyses.

The current release of the R package can be downloaded directly from CRAN in R:

install.packages("SimplyAgree")

Or, the developmental version, can be downloaded from GitHub:

devtools::install_github("arcaldwell49/SimplyAgree")

There are 2 vignettes that document the major functions within the package that can be found on the package's website (https://aaroncaldwell.us/SimplyAgree). Overall, there are 6 fundamental functions, all with generic plot and print methods, within the R package:

  1. agree_test: Simple Test of Agreement. This is function performs agreement analyses on two vectors of the same length, and is designed for analyses that were described by Bland & Altman [-@bland1986; -@bland1999]. In addition to providing the traditional Bland-Altman limits of agreement, the function provides a hypothesis test [@shieh2019], and provides the concordance correlation coefficient [@lin1989].

  2. agree_reps: Test of Agreement for Replicate Data. This function provides the limits of agreement described by @zou2011 for data where the mean, per subject, does not vary. In addition, the concordance correlation coefficient, calculated by U-statistics, is also provided in the output [@carrasco2013].

  3. agree_nest: Test of Agreement for Nested Data. This function provides the limits of agreement described by @zou2011 for data where the mean, per subject, does vary. Similar to the replicate data function, the concordance correlation coefficient, calculated by U-statistics, is provided in the output [@carrasco2013].

  4. loa_mixed: Bootstrapped Limits of Agreement for Nested Data. This function calculates limits of agreement using a non-parametric bootstrap method, and can allow the underlying mean to vary (replicate data) or not (nested data).

  5. blandPowerCurve: Power Analysis for Bland-Altman Limits of Agreement. This function implements the formula outlined by @lu2016. This allows for power calculations for the @bland1999 limits of agreement. The function find_n can then be used to find the sample size at which adequate power (defined by the user) is achieved.

  6. reli_stats: Reliability Statistics. This function calculates and provides as output the statistics outlined by @weir2005. This includes an array of intraclass correlation coefficients, the coefficient of variation, and the standard error of measurement.

\newpage

Current jamovi Capabilities

The jamovi module can be added to the jamovi directly from the "add module" tab in the GUI.

**Figure 1**: How to add a module in jamovi.

The SimplyAgree module is then available on the main menu, and within it there are three analysis options.

**Figure 2**: SimplyAgree in jamovi.

The three analysis options essentially enable jamovi users to complete some of the same analyses available in the R package.

  1. The simple agreement analysis incorporates the agree_test function. Users have the option of including the concordance correlation coefficient, and plots of the data.

**Figure 3**: Sample Output from the Simple Agreement Analysis.

  1. The nested/replicate agreement analysis uses the agree_nest and agree_reps function to perform the analyses. The agree_reps function is used if "Assume underlying value does not vary?" is selected; otherwise agree_nest is used.

**Figure 4**:Sample Output from the Nested/Replicate Agreement Analysis.

  1. The reliability analysis utilizes reli_stats to calculate reliability statistics.

**Figure 5**: Sample Output from the Reliability Analsyis.

\newpage

Acknowledgements

I would like the thank Ashley Akerman for his kind feedback during the development of this package.

The opinions or assertions contained herein are the private views of the author and are not to be construed as official or reflecting the views of the Army or the Department of Defense. Any citations of commercial organizations and trade names in this report do not constitute an official Department of the Army endorsement of approval of the products or services of these organizations. No authors have any conflicts of interest to disclose. Approved for public release; distribution is unlimited.

References



arcaldwell49/SimplyAgree documentation built on March 26, 2024, 2:26 p.m.