agree_np
A non-parametric approach to limits of agreement.
The hypothesis test is based on binomial proportions within the maximal allowable differences, and the limits are calculated with quantile regression.
agree_np(
x,
y,
id = NULL,
data,
delta = NULL,
prop_bias = FALSE,
TOST = TRUE,
agree.level = 0.95,
conf.level = 0.95
)
Returns simple_agree object with the results of the agreement analysis.
loa
: A data frame of the limits of agreement.
agree
: A data frame of the binomial proportion of results in agreement.
h0_test
: Decision from hypothesis test.
qr_mod
: The quantile regression model.
call
: The matched call
Name of column with first measurement.
Name of other column with the other measurement to compare to the first.
Column with subject identifier with samples are taken in replicates.
Data frame with all data.
The threshold below which methods agree/can be considered equivalent and this argument is required. Equivalence Bound for Agreement or Maximal Allowable Difference.
Logical indicator (TRUE/FALSE) of whether proportional bias should be considered for the limits of agreement calculations.
Logical indicator (TRUE/FALSE) of whether to use two one-tailed tests for the limits of agreement. Default is TRUE.
the agreement level required. Default is 95%. The proportion of data that should lie between the thresholds, for 95% limits of agreement this should be 0.95.
the confidence level required. Default is 95%.
Bland, J. M., & Altman, D. G. (1999). Measuring agreement in method comparison studies. In Statistical Methods in Medical Research (Vol. 8, Issue 2, pp. 135–160). SAGE Publications. tools:::Rd_expr_doi("10.1177/096228029900800204")
data('reps')
agree_np(x = "x", y = "y", id = "id", data = reps, delta = 2)
Run the code above in your browser using DataLab