CONCORD: Concordance coefficient

View source: R/CONCORD.r

CONCORDR Documentation

Concordance coefficient

Description

Computation of Lin's concordance coefficient, with optional rescaling.

Usage

CONCORD(x1, x2, scaled = FALSE)

Arguments

x1, x2

two vectors of same length

scaled

if FALSE (default), no rescaling of one of the vectors, giving the regular concordance coefficient; if TRUE, one of the vectors is rescaled to fit the other one, giving a scaled concordance coefficient

Details

The function CONCORD computes the agreement between two vectors, measured by the concordance coefficent; alternatively, it measures the scaled concordance coefficient for agreement up to a scaling factor.

Value

the concordance coefficient

Author(s)

Michael Greenacre

References

Lin, L. I.-K. (1989). A concordance correlation coefficient to evaluate reproducibility. Biometrics 45: 255-268.

See Also

SUBCO

Examples

# measure how close the Kimberlite compositions are to subcompositional coherence 
# using Spearman correlations and a subcomposition of 2/3 of the parts      
data(Kimberlite)
kim <- CLOSE(Kimberlite[,3:24])
set.seed(1)
select <- sample(1:22, 14)
kim.sub <- CLOSE(kim[,select])
kim.cor <- as.dist(cor(kim, method="spearman")[select,select])
kim.sub.cor <- as.dist(cor(kim.sub, method="spearman"))
CONCORD(kim.cor,kim.sub.cor)

easyCODA documentation built on Nov. 24, 2026, 1:07 a.m.

Related to CONCORD in easyCODA...