| ccc | R Documentation | 
This ccc() function leverages the speed of C++ to implement Lin's Concordance Correlation Coefficient (CCC) via Rcpp. This
implementation is faster than other varieties of CCC calculation from other packages, i.e.,
DescTools::CCC() and epiR::epi.ccc().
ccc(x, y)
| x | A numeric vector containing  | 
| y | A numeric vector containing  | 
For more details on the calculation of the CCC, see: https://en.wikipedia.org/wiki/Concordance_correlation_coefficient
A numeric scalar representing the CCC between x and y.
# Create x and y vectors
x <- rnorm(100, sd = 1)
y <- rnorm(length(x), sd = 0.2)
# Calculate CCC between x and y
ccc(x,y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.