Learn R Programming

deal (version 1.1-1)

conditional: Calculate conditional distribution

Description

From master distribution the conditional distribution of a node given the parents is calculated.

Usage

conditional.cont(A,mu,nu,rho,phi) 
conditional(A,master,nw) 
conditional.disc(A,master) 
cond.node(node,nw,nw.prior=jointprior(nw))

Arguments

nw
The network.
node
The current node.
nw.prior
A joint prior, see jointprior.
A
The index of the current node.
master
Local master.
mu
Mu parameter in local master.
nu
Nu parameter in local master.
rho
Rho parameter in local master.
phi
Phi parameter in local master.

Value

  • The node is updated with condprior attribute.

Details

Used in learn, which calls cond.node. The local master is calculated and sent to conditional which calls either conditional.cont or conditional.disc depending on the type of the node. In each case the localmaster is used for calculating the conditional distribution of the current node given the remaining nodes in the local master.

References

Further information about Deal can be found at: http://www.math.auc.dk/novo/deal.

See Also

learn, localmaster