rDAGdist | R Documentation |
Simulate conditional probability tables to obtain a discrete DAG model that is Markov with respect to the graph.
rDAGdist(n, graph, dims = rep(2L, nv(graph)), alpha = 1)
n |
number of distributions to simulate |
graph |
a DAG object of class |
dims |
integer vector of dimensions of distribution |
alpha |
parameter to use in Dirichlet distribution |
Simulated conditional probability tables for each node given its parents, and uses this to obtain the joint distribution.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.