Usage
agreement(x, y, error, target, CCC_a = 0.95, TDI_a, alpha = 0.05, CP_a = 0.9, H_label = "x", V_label = "y", min = NA, max = NA, by = NA, dec = 2)
Arguments
x
A vector of the readings for the target assay or rater, it will be shown in the horizontal axis of the agreement plot
y
A vector of the readings for the test assay or rater, it will be shown in the vertical axis of the agreement plot
error
Constant or proportional error structure. Use error="const"
if the error structure is constant. Then, TDI is expressed as an absolute difference with the same measurement unit as the original data. Use error="prop"
if the error structure is proportional, Then, TDI is expressed as a percent change. The natural log transformation to the data will be applied.
target
target="random"
or "fixed"
.
CCC_a
A CCC allowance, the default if CCC_a=0.95
.
TDI_a
A TDI allowance which must be specified for computing CP, must be a percent value when error="prop"
is specified or an absolute difference when error="const"
is specified.
CP_a
A CP allowance which must be specified for computing TDI. The default is CP_a=0.9
.
H_label
Label for the horizontal axis (target) of the agreement plot. The default is H_label="x"
.
V_label
Label for the vertical axis (test) of the agreement plot. The default is V_label="y"
.
min
Minimum of the plotting range, if it is not specified, a range will be chosen automatically to show all the data point.
max
Maximum of the plotting range, if it is not specified, a range will be chosen automatically to show all the data point.
by
The increment of the plotting range. If error="const"
is specified, it is the value of increment, for example, by=5
. If error="prop"
is specified, it is the log scale increments in between min and max. For example, if min=1
and max=64
, then by=c(2,4,8,16,32)
. If by
is not specified, it will be chosen automatically based on the error structure.
dec
Significant digits for the output. The default is dec=2
.