Nothing
bn.skel.utils <- function(bnskel.obj, G = NULL, roc = TRUE, alpha = 0.05) {
area <- NULL
preds <- bnskel.obj$pvalue
preds <- preds[ upper.tri(preds) ]
if ( !is.null(G) ) {
group <- G[ upper.tri(G) ]
area <- pchc::auc(group, -preds, roc = roc)
}
p <- exp(preds)
sig.p <- p[ which(p <= alpha) ]
fdr <- min(1, length(p) / length(sig.p) * max(sig.p) )
theseis <- which( bnskel.obj$pvalue < log(alpha), arr.ind = TRUE )
sig.p <- cbind(theseis, bnskel.obj$pvalue[theseis])
sig.p <- Rfast::rowSort(sig.p)
sig.p <- unique(sig.p)
sig.p <- cbind(sig.p[, 2:3], sig.p[, 1] )
sig.p <- sig.p[order(sig.p[, 3]), ]
sig.p[, 3] <- exp(sig.p[, 3])
theseis <- NULL
list(area = area, fdr = fdr, sig.pvalues = sig.p)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.