R/pcit.wrap.R

Defines functions pcit.wrap

Documented in pcit.wrap

pcit.wrap <- function(data){
    m <- cor(data)
    net  <- PCIT::pcit(m)
    signif <-  idx(net)
    nonsignif <- PCIT::idxInvert(nrow(m), signif)
    m.new <- m
    m.new[nonsignif] <- 0
    diag(m.new) <- 0
    m.new <- abs(m.new)
    return(m.new)
}

Try the netbenchmark package in your browser

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

netbenchmark documentation built on April 28, 2020, 7 p.m.