buildCPTs: buildCPTs: a function for building conditional probability tables based on pedigree bayesian network.
Description
buildCPTs: a function for building conditional probability tables based on pedigree bayesian network.
Usage
buildCPTs(
bn,
bNodePrunning = TRUE,
bStateRemoval = TRUE,
bStateRemoval2 = TRUE,
lumpingParameter = NULL,
renorm = "row-wise",
verbose = FALSE
)
Value
A bayesian network based on pedigree evidence and QP definition.
Arguments
- bn
A bayesian network for pedigree object with information of the genotyped members. The ped object must be in Familias format.
- bNodePrunning
Standard pruning.
- bStateRemoval
State based pruning.
- bStateRemoval2
State based pruning (model 2).
- lumpingParameter
Used for stepwise mutational model.
- renorm
If "row-wise" is selected, zero probability is assigned for transitions out of range.
- verbose
Computations output.
Examples
Run this codepbn <- initBN(toyped)
bnet <- buildBN(pbn,QP=3)
bn1 <- buildCPTs(bnet)
Run the code above in your browser using DataLab