An 'Rcpp' Implementation of Lin's Concordance Correlation Coefficient (CCC)

Lin's Concordance Correlation Coefficient (CCC) is a statistic which measures the degree of agreement between two variables. The CCC is useful for assessing (i) the measurement agreement between two variables (typically outputs between two devices); (ii) the reproducibility between two measurements obtained from the same device; and (iii) inter-rater reliability. The 'concordancer' package provides a 'C++' implementation of Lin's CCC via 'Rcpp'. In so doing, the ccc() function contained herein is a much faster implementation than those contained in other R packages. For more details on Lin's CCC, please see < https://en.wikipedia.org/wiki/Concordance_correlation_coefficient>.


concordancer

R-CMD-check

The goal of concordancer is to provide an Rcpp implementation of Lin's Concordance Correlation Coefficient (CCC).

Installation

Install the latest release from CRAN:

install.packages("concordancer")

You can install the development version of concordancer from GitHub with:

# install.packages("devtools")
devtools::install_github("troyjcross/concordancer")

Example

This is a basic example which shows you how to solve a common problem:

library(concordancer)

# Create x and y
x <- rnorm(100, sd = 1)
y <- rnorm(length(x), sd = 0.5)

# Calculate CCC
result <- ccc(x,y)

print(result)

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("concordancer")

1.0.2 by Troy J Cross, 3 years ago


https://github.com/troyjcross/concordancer


Report a bug at https://github.com/troyjcross/concordancer/issues


Browse source code at https://github.com/cran/concordancer


Authors: Troy J Cross [aut, cre, cph]


Documentation:   PDF Manual  


GPL (>= 3) license


Imports Rcpp

Suggests spelling

Linking to Rcpp


See at CRAN