R/rank.nodes.R

Defines functions rank.nodes

Documented in rank.nodes

#' Ranking of nodes
#' 
#' Rank harvested node by lower p value
#' @param harfunc.object an object of class "harfunc"
#' @return the ranked harvest nodes
#' @export



rank.nodes <- function(harfunc.object){
  har.rule <- harfunc.object$har.rule
  lowci.har<- unlist(lapply(har.rule, function(x) {Bi.test(x$total, x$active)}))
  lowci.n <- rank(-lowci.har)
  return(lowci.n)
}

Try the Harvest.Tree package in your browser

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

Harvest.Tree documentation built on May 2, 2019, 3:31 p.m.