R/indep-deprecated.R

Defines functions indep.test

Documented in indep.test

# deprecated independence test

indep.test<-
function(x, y, method = c("dcov","mvI"), index = 1, R) {
  # two energy tests for multivariate independence
  .Deprecated(new = "dcov.test", package = "energy",
              msg = "indep.test is deprecated, 
              replaced by dcov.test or mvI.test")
  
  type <- match.arg(method)
    if (type == "dcov")
        return(dcov.test(x, y, index, R)) else
    if (type == "mvI")
        return(mvI.test(x, y, R))
}

Try the energy package in your browser

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

energy documentation built on Sept. 11, 2024, 7:57 p.m.