calcCCC: Calculate Concordance Correlation Coefficient

View source: R/calcCCC.R

calcCCCR Documentation

Calculate Concordance Correlation Coefficient

Description

Calculate the concordance correlation coefficient (CCC) and it's significance value from two vectors of related data.

Usage

calcCCC(x, y)

Arguments

x

A numeric vector of values to compare against y.

y

A numeric vector of values to compare against x.

Value

A list of the following:

rho.c

The concordance correlation coefficient (CCC).

ci95

The 95 percent confidence intervals of the CCC.

Z

The z-score of the CCC.

p.value

The p-value corresponding to the Z-score.

Author(s)

Stu Field

References

Lawrence Lin, Biometrics (45): 255-268.

See Also

cor, pnorm

Examples

calcCCC(rnorm(100), rnorm(100))
v <- rnorm(100)
calcCCC(v, v + 1)

stufield/TestPkg documentation built on Jan. 26, 2023, 10:48 p.m.