R/irrelevant.R

Defines functions irrelevant

irrelevant <- function(children, vari, sumset, G.unobs) {
  n <- length(children)
  irrel <- NULL
  for (i in 1:n) {
    ch <- children[[i]]
    if (!(ch$var %in% sumset)) {
      if (wrap.dSep(G.unobs, ch$var, vari, setdiff(ch$cond, vari))) irrel <- c(irrel, i)
    }
  }
  return(irrel)
}

Try the causaleffect package in your browser

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

causaleffect documentation built on July 14, 2022, 5:07 p.m.