troyjcross / concordancer

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:GNU General Public License v3.0


Languages

Language:R 51.9%Language:C++ 48.1%