Description Usage Arguments Details Value Author(s) References See Also Examples
Compute the concordance correlation coefficient (CCC), precision, accuracy, total deviation index (TDI), coverage probability (CP) and relative biased square (RBS) for the paired observations (test and target) based on the model proposed by Lin, Hedayat, Sinha and Yang (2002).
1 |
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 |
target |
|
CCC_a |
A CCC allowance, the default if |
TDI_a |
A TDI allowance which must be specified for computing CP, must be a percent value when |
alpha |
100(1- |
CP_a |
A CP allowance which must be specified for computing TDI. The default is |
H_label |
Label for the horizontal axis (target) of the agreement plot. The default is |
V_label |
Label for the vertical axis (test) of the agreement plot. The default is |
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 |
dec |
Significant digits for the output. The default is |
The functions summary
and plot
can be used to print a summary of the results and plot the observations.
An object of class report
is returned, which contains all the estimated statistics and their confidence limits.
Yue Yu <yyu@imyy.net>
Lawrence Lin, A. S Hedayat, Bikas Sinha, Min Yang. Journal of the American Statistical Association. March 1, 2002, 97(457): 257-270.
summary.agreement
, summary.report
, plot.report
, html.report
1 2 3 4 5 6 7 | data(DCLHb);
HemocueAve <- apply(DCLHb[,c("HEMOCUE1","HEMOCUE2")],1,mean);
SigmaAve <- apply(DCLHb[,c("SIGMA1","SIGMA2")],1,mean);
agr=agreement(y=HemocueAve,x=SigmaAve,V_label="Hemacue",H_label="Sigma",min=0,max=2000,by=250,CCC_a=0.9775,CP_a=0.9,TDI_a=150,error="const",target="random",dec=3,alpha=0.05);
summary(agr);
plot(agr);
|
Loading required package: R2HTML
Agreement Statistics
CCC Precision Accuracy TDI CP RBS
0.9866 0.9867 0.9999 127.487 0.9463 0
95% Confidence Limits
CCC Precision Accuracy TDI CP RBS
0.9838 0.9839 0.9989 136.388 0.9276 .
Allowance
CCC Precision Accuracy TDI CP RBS
0.9775 . . 150 0.9 .
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.