Skip to contents

velim.bn: a function for variable elimination in a bayesian network.

Usage

velim.bn(
  bn,
  ordMethod = c("id", "min_degree", "min_fill", "fixed")[2],
  orderElim = NULL,
  verbose = FALSE
)

Arguments

bn

A bayesian network for pedigree object with information of the genotyped members. The ped object must be in Familias format.

ordMethod

Selected ordering method between id, min_degree, min_fill and fixed.

orderElim

Elimination order.

verbose

Computation output.

Value

Variable elimination result.

Examples

bnet <- buildBN(pbn,QP=3)
bn1  <- buildCPTs(bnet)
resQ <- velim.bn(bn1,ordMethod="min_fill",verbose=FALSE)