findConditional | R Documentation |
This function returns the conditional probability function of a node given an MoTBF-bayesian network and the value of its parents.
findConditional(node, bn, evi = NULL)
node |
A |
bn |
A list of lists obtained from MoTBFs_Learning, containing the conditional functions. |
evi |
A |
A list containing the conditional distribution of the target variable.
## Dataset data("ecoli", package = "MoTBFs") data <- ecoli[,-c(1,9)] ## Get directed acyclic graph dag <- LearningHC(data) ## Learn bayesian network bn <- MoTBFs_Learning(dag, data = data, numIntervals = 4, POTENTIAL_TYPE = "MTE") ## Specify the evidence set and node of interest evi <- data.frame(lip = "0.48", alm1 = 0.55, gvh = 1, stringsAsFactors=FALSE) node = "alm2" ## Get the conditional distribution findConditional(node, bn, evi)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.