Description Usage Arguments Details Value Author(s) See Also Examples
Creates a new catNetwork
with specified nodes, categories, parent sets and probability structure.
1 |
nodes |
a |
cats |
a |
pars |
a |
probs |
a |
p.delta1 |
a |
p.delta2 |
a |
dagonly |
a |
If probs
is not specified, then a random probability model is assigned with conditional probability values in the union of the intervals [p.delta1, 0.5-p.delta2] and [0.5+p.delta2, 1-p.delta1].
Because of the nested list hierarchy of the probability structure,
specifying the probability argument explicitly can be very elaborated task for large networks.
In the following example we create a small network with only three nodes.
The first node has no pars and only its marginal distribution is given, c(0.2,0.8)
.
Note that all inner most vectors in the probs
argument, such as (0.4,0.6)
,
represent conditional distributions and thus sum to 1.
A catNetwork
object.
N. Balov
catNetwork-class
, cnRandomCatnet
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.