## data in Fig.1 from Bland and Altman (1986).
x <- list(Large = c(494,395,516,434,476,557,413,442,650,433,
417,656,267,478,178,423,427),
Mini = c(512,430,520,428,500,600,364,380,658,445,
432,626,260,477,259,350,451))
x <- as.data.frame(x)
plot(Mini ~ Large, data = x, xlim = c(100,800), ylim = c(100,800),
xlab = "PERF by Large meter", ylab = "PERF by Mini meter")
abline(c(0,1), col = "gray", lwd = 2)
## estimating CCC
z <- ccc(~ Mini + Large, data = x, method = "asymp")
z
## output:
# Call:
# ccc(x = ~ Mini + Large, data = x, method = "asymp")
#
# Coefficients:
# estimate variance accuracy precision
# 0.9427 0.0008 0.9994 0.9433
#
# Asymptotic 95% confidence interval:
# CCC SE lower upper
# 0.9427 0.0286 0.8867 0.9988
Run the code above in your browser using DataLab