andtable {gRain} | R Documentation |
Generate conditional probability tables based on the logical expressions AND and OR.
andtable(v, pa = NULL, pa1 = c(TRUE, FALSE), pa2 = c(TRUE, FALSE), levels) ortable(v, pa = NULL, pa1 = c(TRUE, FALSE), pa2 = c(TRUE, FALSE), levels)
v |
A vertex |
pa |
The parents of vertex v |
pa1,pa2 |
The coding of the logical parents |
levels |
The levels (or rather labels) of v, see 'examples' below |
A cptable.
Søren Højsgaard, sorenh@agrsci.dk
ortable(c("v","A","B"), levels=c("yes","no"))