powered by
velim.bn: a function for variable elimination in a bayesian network.
velim.bn( bn, ordMethod = c("id", "min_degree", "min_fill", "fixed")[2], orderElim = NULL, verbose = FALSE )
Variable elimination result.
A bayesian network for pedigree object with information of the genotyped members. The ped object must be in Familias format.
Selected ordering method between id, min_degree, min_fill and fixed.
Elimination order.
Computation output.
pbn <- initBN(toyped) bnet <- buildBN(pbn,QP=3) bn1 <- buildCPTs(bnet) resQ <- velim.bn(bn1,ordMethod="min_fill",verbose=FALSE)
Run the code above in your browser using DataLab