Calculate Concordance Correlation Coefficient
calc_ccc.RdCalculate the concordance correlation coefficient (CCC) and it's significance value from two vectors of related data.
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.
Examples
calc_ccc(rnorm(100), rnorm(100))
#> $rho.c
#> [1] -0.02673654
#> 
#> $ci95
#>      lower      upper 
#> -0.2207296  0.1692914 
#> 
#> $Z
#> [1] -0.02674292
#> 
#> $p.value
#> [1] 0.9786648
#> 
v <- rnorm(100)
calc_ccc(v, v + 1)
#> $rho.c
#> [1] 0.6862789
#> 
#> $ci95
#>     lower     upper 
#> 0.6211870 0.7419661 
#> 
#> $Z
#> [1] 0.8408875
#> 
#> $p.value
#> [1] 0.400411
#>