agree.plot: Visualize the Agreement of Ratings among Different Raters

Description Usage Arguments Details Value Note References Examples

View source: R/agree.plot.R

Description

Draw Bland-Altman plot(s) and scatter plot(s) with identity line.

Usage

1
  agree.plot(ratings, NAaction=c("fail", "omit"))

Arguments

ratings

a matrix of ratings from different raters, one rater per column.

NAaction

a character string specifying what should happen when the data contain NAs. It must be one of "fail" and "omit" and may be abbreviated. The default is "fail" that causes the function to print an error message and terminate if there are any incomplete observations. If it is "omit", then the entire row(s) containing incomplete observation(s) will be deleted.

Details

The function produces a matrix of plots. The upper panel consists of scatter plot(s) with identity line. The lower panel consists of the Bland-Altman plot(s) with confidence bounds and bias using dotted line in red color and the horizontal line passing through the origin in black, respectively.

Value

NULL

Note

The confidence bounds are mean of the difference between two raters plus or minus twice of the SD of difference.

References

J. Martin Bland and Douglas G. Altman (1986) Statistical methods for assessing agreement between two methods of clinical measurement. Lancet 1 307-310

Examples

1
2

Example output

Loading required package: miscF
Loading required package: MASS
Loading required package: R2jags
Loading required package: rjags
Loading required package: coda
Linked to JAGS 4.3.0
Loaded modules: basemod,bugs

Attaching package:R2jagsThe following object is masked frompackage:coda:

    traceplot

Loading required package: lme4
Loading required package: Matrix

agRee documentation built on April 14, 2020, 6:35 p.m.

Related to agree.plot in agRee...