Skip to content

An 'Rcpp' implementation of Lin's Concordance Correlation Coefficient

License

Notifications You must be signed in to change notification settings

troyjcross/concordancer

Repository files navigation

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)

About

An 'Rcpp' implementation of Lin's Concordance Correlation Coefficient

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published