findConditional {MoTBFs} | R Documentation |
Find fitted conditional MoTBFs
Description
This function returns the conditional probability function of a node given an MoTBF-bayesian network and the value of its parents.
Usage
findConditional(node, bn, evi = NULL)
Arguments
node |
A |
bn |
A list of lists obtained from MoTBFs_Learning, containing the conditional functions. |
evi |
A |
Value
A list containing the conditional distribution of the target variable.
Examples
## 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)
[Package MoTBFs version 1.4.1 Index]