library(dplyr)
library(pliman)
df <- data.frame(
group = rep(c("A", "B"), each = 5),
real = c(1:5, 2:6),
predicted = c(1.1, 2, 2.9, 4.1, 5, 2.2, 3.1, 4, 4.8, 6.1)
)
# Without grouping
ccc(df, real, predicted)
# With grouping
df |>
group_by(group) |>
ccc(real, predicted)
Run the code above in your browser using DataLab