| CONCORD | R Documentation |
Computation of Lin's concordance coefficient, with optional rescaling.
CONCORD(x1, x2, scaled = FALSE)
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 |
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.
the concordance coefficient
Michael Greenacre
Lin, L. I.-K. (1989). A concordance correlation coefficient to evaluate reproducibility. Biometrics 45: 255-268.
SUBCO
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.