R/ojaSCM.R

Defines functions `ojaSCM`

`ojaSCM` <-
function(X, center= "ojaMedian", p = NULL, silent = FALSE, na.action = na.fail, ...){
    OjaSigns <- ojaSign(X, x = NULL, center = center, p = p, silent = silent, na.action = na.fail, ...)
    SCM <- crossprod(OjaSigns)/nrow(OjaSigns)
    dimnames(SCM) <- NULL
    rownames(SCM) <- colnames(X)
    colnames(SCM) <- colnames(X)
    return(SCM)
}

Try the OjaNP package in your browser

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

OjaNP documentation built on Feb. 23, 2020, 5:07 p.m.