velim.bn | R Documentation |
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
)
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. |
Variable elimination result.
pbn <- initBN(toyped)
bnet <- buildBN(pbn,QP=3)
bn1 <- buildCPTs(bnet)
resQ <- velim.bn(bn1,ordMethod="min_fill",verbose=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.