R/is.graphical.R

is.graphical <-
function (formula, tools) {

  graph <- findGraph (formula, tools)
  
  cliques <- findCliques(graph, tools)
 
  model <- findModel (formula, tools)
  generators <- findGenerators (model, tools)

  if (sum (generators == cliques) == tools$nVarSets)
    return (TRUE)
  else
    return (FALSE)

}

Try the bayesloglin package in your browser

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

bayesloglin documentation built on May 1, 2019, 9:45 p.m.