chain4chain {rbmn} | R Documentation |
extracts a chain from a chain
Description
returns the chain obtained from chain
retaining only nodes
indicated by nodes
and conditioned with nodes indicated in
condi
.
Usage
chain4chain(chain, nodes, condi=numeric(0), value=rep(0, length(condi)))
Arguments
chain |
The chain object to consider. |
nodes |
|
condi |
|
value |
Numerical values associated to |
Details
Integration is done for nodes not belonging to the extracted chain nor being in the conditioning subset. Then the distribution of the retained nodes is left identical to this in the initial chain.
Value
The resulting chain
Examples
chain4chain(rbmn0chain.02, c("a", "d"), c("b"), 12);
[Package rbmn version 0.9-6 Index]