R/corba.R

Defines functions corba

Documented in corba

corba <-
function(xba, x) {

  cors <- mapply(function(xvar, yvar) cor(xvar, yvar, method = "pearson"), data.frame(x), data.frame(xba))
  return(mean(cors))

}

Try the bapred package in your browser

Any scripts or data that you put into this service are public.

bapred documentation built on June 22, 2022, 9:08 a.m.