c-linearity calculates c-linearity as the maximum multiple correlation
c_linearity(confs)
confs
a numeric matrix or data frame
x<-1:10 y<-2+3*x+rnorm(10) z<- sin(y-x) confs<-cbind(z,y,x) c_linearity(confs)